Markus Olsson

Results 7 issues of Markus Olsson

I have found an issue with `Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine`. It contains a call to `Modelica.Utilities.Streams.print` directly in the equation section. Since `print` is an impure function this is not allowed. I suggest...

I have found an issue in `Modelica.Electrical.Digital.Interfaces.MemoryBase.getMemory`. It contains a function call to `Modelica.Utilities.Streams.readLine` which is an impure function, but `getMemory` is not declared as impure. I suggest adding the...

Here are some more functions that I think should be declared as impure: - `Modelica.Math.FastFourierTransform.realFFTwriteToFile` - contains calls to several impure functions, e.g. `Modelica.Utilities.Files.removeFile`. - `Modelica.Math.Random.Utilities.initializeImpureRandom` - contains call to...

I could not find anything in the specification about the variability of external objects. In #2661 it is discussed if non-parameter arguments should be allowed in the constructor, but not...

enhancement

If a class defines a local coordinate system to modify one the attributes that are not extent, e.g., `preserveAspectRatio`, should the extent be inherited? My interpretation of the specification is...

Should Modelica tools allow compile-time evaluation of impure functions? Consider the following example: ```Modelica model Example1 parameter String fileName, matrixName; parameter Integer n[2] = Modelica.Utilities.Streams.readMatrixSize(fileName, matrixName); parameter Real matrix[n[1], n[2]]...

Is the following model allowed? ```Modelica model Example constant Real eps = ...; Real x(start = 0, fixed = true); Real y(start = 0, fixed = true); equation der(x) =...