From: Jani Mäkinen Date: Mon, 5 Aug 2019 13:26:59 +0000 (+0300) Subject: time is filtered out when reading simulation results using openmodelica X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F62%2F3062%2F2;p=simantics%2Fsysdyn.git time is filtered out when reading simulation results using openmodelica gitlab #57 Change-Id: Ide55c0fd15255b9128a2425c9d1b28b9ad490826 --- 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?