Function that prints a real array to an output file.
function printRealArray extends Modelica.Icons.Function; input Real[:] x "Input to be printed"; input String fileName = "" "File where to print (empty string is the terminal)"; input Integer minimumLength = 1 "Minimum width of result"; input Integer significantDigits = 6 "Number of significant digits"; output String outStr = "" "String to be printed"; end printRealArray;
number attribute in String
function as this is not according to the Modelica
specification.precision to
significantDigits and minimumWidth to
minimumLength to use the same terminology as the
Modelica Standard Library.