From be7ba7d5bb708e18e2ed4d118ea358793815df70 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jani=20M=C3=A4kinen?= Date: Mon, 5 Aug 2019 16:26:59 +0300 Subject: [PATCH] time is filtered out when reading simulation results using openmodelica gitlab #57 Change-Id: Ide55c0fd15255b9128a2425c9d1b28b9ad490826 --- .../src/org/simantics/modelica/reader/MatFileReader.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bundles/org.simantics.modelica/src/org/simantics/modelica/reader/MatFileReader.java b/bundles/org.simantics.modelica/src/org/simantics/modelica/reader/MatFileReader.java index 79db0d6c..6b7f0e05 100644 --- a/bundles/org.simantics.modelica/src/org/simantics/modelica/reader/MatFileReader.java +++ b/bundles/org.simantics.modelica/src/org/simantics/modelica/reader/MatFileReader.java @@ -180,6 +180,9 @@ public class MatFileReader implements ResultFileReader { infoData = info.data; + // Special treatment for the time variable + infoData[0] = 2; + //Read parameters parameterValues = new HashMap(); DoubleMatrix parameters = (DoubleMatrix)readMatrix(in); // Some result data matrix? -- 2.47.1