]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
time is filtered out when reading simulation results using openmodelica 62/3062/2
authorJani Mäkinen <jani.makinen@semantum.fi>
Mon, 5 Aug 2019 13:26:59 +0000 (16:26 +0300)
committerJani Mäkinen <jani.makinen@semantum.fi>
Thu, 29 Aug 2019 08:51:34 +0000 (11:51 +0300)
gitlab #57

Change-Id: Ide55c0fd15255b9128a2425c9d1b28b9ad490826

bundles/org.simantics.modelica/src/org/simantics/modelica/reader/MatFileReader.java

index 79db0d6c5fe688a76c930eefc50c351283793a67..6b7f0e055c78009c4ec6b5bc6a045ad505b17f58 100644 (file)
@@ -180,6 +180,9 @@ public class MatFileReader implements ResultFileReader {
        \r
         infoData = info.data;\r
         \r
+        // Special treatment for the time variable\r
+        infoData[0] = 2;\r
+        \r
         //Read parameters\r
         parameterValues = new HashMap<String, double[]>();\r
         DoubleMatrix parameters = (DoubleMatrix)readMatrix(in); // Some result data matrix?\r