You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the example model Modelica.Utilities.Examples.ReadRealMatrixFromFile the matrix A is defined by final parameter Real A[:,:] = Modelica.Utilities.Streams.readRealMatrix(file,matrixName,dim1[1],dim1[2]) "Matrix data";
but parameter dim1 is defined using another file variable and matrix name (file1, matrixName1).
Incidentally, the same matrix is read by default by file and file1. However, file and matrixName can be modified making the bug problematic.
Suggested fix: final parameter Real A[:,:] = Modelica.Utilities.Streams.readRealMatrix(file,matrixName,dim[1],dim[2]) "Matrix data";
The text was updated successfully, but these errors were encountered:
In the example model Modelica.Utilities.Examples.ReadRealMatrixFromFile the matrix A is defined by
final parameter Real A[:,:] = Modelica.Utilities.Streams.readRealMatrix(file,matrixName,dim1[1],dim1[2]) "Matrix data";
but parameter dim1 is defined using another file variable and matrix name (file1, matrixName1).
Incidentally, the same matrix is read by default by file and file1. However, file and matrixName can be modified making the bug problematic.
Suggested fix:
final parameter Real A[:,:] = Modelica.Utilities.Streams.readRealMatrix(file,matrixName,dim[1],dim[2]) "Matrix data";
The text was updated successfully, but these errors were encountered: