Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Modelica/Math/FastFourierTransform.mo
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ which is a complete example where an FFT is computed during simulation and store
</html>"));
end realFFT;

function realFFTwriteToFile "Write real FFT computation to file"
impure function realFFTwriteToFile "Write real FFT computation to file"
extends Modelica.Icons.Function;
import Modelica.Utilities.Streams.print;
import Modelica.Units.Conversions.to_deg;
Expand Down
8 changes: 4 additions & 4 deletions Modelica/Math/Nonlinear.mo
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package Nonlinear "Library of functions operating on nonlinear equations"
"Examples demonstrating the usage of the functions in package Nonlinear"
extends Modelica.Icons.ExamplesPackage;

function quadratureLobatto1 "Integrate integral with fixed inputs"
impure function quadratureLobatto1 "Integrate integral with fixed inputs"
extends Modelica.Icons.Function;
import Modelica.Utilities.Streams.print;

Expand Down Expand Up @@ -87,7 +87,7 @@ The following integrals are computed:
</html>"));
end quadratureLobatto1;

function quadratureLobatto2 "Integrate integral with user dependent inputs"
impure function quadratureLobatto2 "Integrate integral with user dependent inputs"
extends Modelica.Icons.Function;
import Modelica.Utilities.Streams.print;

Expand Down Expand Up @@ -159,7 +159,7 @@ The following integrals are computed:
</html>"));
end quadratureLobatto2;

function solveNonlinearEquations1
impure function solveNonlinearEquations1
"Solve nonlinear equations with fixed inputs"
extends Modelica.Icons.Function;
import Modelica.Utilities.Streams.print;
Expand Down Expand Up @@ -238,7 +238,7 @@ The following nonlinear equations are solved:
</html>"));
end solveNonlinearEquations1;

function solveNonlinearEquations2
impure function solveNonlinearEquations2
"Solve nonlinear equations with user dependent inputs"
extends Modelica.Icons.Function;
import Modelica.Utilities.Streams.print;
Expand Down
2 changes: 1 addition & 1 deletion Modelica/Math/Random.mo
Original file line number Diff line number Diff line change
Expand Up @@ -1054,7 +1054,7 @@ path is provided.
</html>"));
end automaticLocalSeed;

function initializeImpureRandom
impure function initializeImpureRandom
"Initializes the internal state of the impure random number generator"
extends Modelica.Icons.Function;
input Integer seed
Expand Down
2 changes: 1 addition & 1 deletion Modelica/Math/package.mo
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,7 @@ package Matrices "Library of functions operating on matrices"
package Examples
"Examples demonstrating the usage of the Math.Matrices functions"
extends Modelica.Icons.ExamplesPackage;
function solveLinearEquations
impure function solveLinearEquations
"Demonstrate the solution of linear equation systems"
extends Modelica.Icons.Function;
import Modelica.Utilities.Streams.print;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
within Modelica.Mechanics.MultiBody.Visualizers.Colors;
function colorMapToSvg
impure function colorMapToSvg
"Save a color map on file in svg (scalable vector graphics) format"
extends Modelica.Icons.Function;
encapsulated type HeaderType = enumeration(
Expand Down
4 changes: 2 additions & 2 deletions ModelicaTest/Math.mo
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ extends Modelica.Icons.ExamplesPackage;
ok := true;
end Vectors;

function colorMapToSvg "Store all predefined color maps in svg"
impure function colorMapToSvg "Store all predefined color maps in svg"
extends Modelica.Icons.Function;
import Modelica.Mechanics.MultiBody.Visualizers.Colors.colorMapToSvg;
import Modelica.Mechanics.MultiBody.Visualizers.Colors.ColorMaps.{jet, hot, gray, spring, summer, autumn, winter};
Expand Down Expand Up @@ -762,7 +762,7 @@ extends Modelica.Icons.ExamplesPackage;

model TestMatricesExamplesSolveLinearEquations
extends Modelica.Icons.Example;
equation
initial equation
Modelica.Math.Matrices.Examples.solveLinearEquations();
annotation (experiment(StopTime=0));
end TestMatricesExamplesSolveLinearEquations;
Expand Down
2 changes: 1 addition & 1 deletion ModelicaTest/package.mo
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ extends Modelica.Icons.Package;

import Modelica.Units.SI;

function testAllFunctions "Runs all test cases for functions"
impure function testAllFunctions "Runs all test cases for functions"
extends Modelica.Icons.Function;
import Modelica.Utilities.Streams.print;
input String logFile = "ModelicaTestLog.txt"
Expand Down