From 6ee2c35e20de6344a131bad9316cc97ef2ce231e Mon Sep 17 00:00:00 2001 From: Lars Ivar Hatledal Date: Thu, 18 Jul 2019 11:01:34 +0200 Subject: [PATCH] Fix status not updated when calling setup on FMI 1.0 and cleanup --- .../ntnu/ihb/fmi4j/importer/fmi1/AbstractModelInstance.kt | 8 ++++---- .../no/ntnu/ihb/fmi4j/importer/fmi1/CoSimulationSlave.kt | 8 ++++---- .../ntnu/ihb/fmi4j/importer/fmi1/ModelExchangeInstance.kt | 8 ++++---- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/fmi-import/src/main/kotlin/no/ntnu/ihb/fmi4j/importer/fmi1/AbstractModelInstance.kt b/fmi-import/src/main/kotlin/no/ntnu/ihb/fmi4j/importer/fmi1/AbstractModelInstance.kt index 77e07e5d..b712f348 100644 --- a/fmi-import/src/main/kotlin/no/ntnu/ihb/fmi4j/importer/fmi1/AbstractModelInstance.kt +++ b/fmi-import/src/main/kotlin/no/ntnu/ihb/fmi4j/importer/fmi1/AbstractModelInstance.kt @@ -126,10 +126,6 @@ abstract class AbstractModelInstance 0 - return (wrapper.initialize(toleranceControlled, relativeTolerance).isOK()).also { - wrapper.lastStatus = FmiStatus.OK - } + return wrapper.initialize(toleranceControlled, relativeTolerance).isOK() } override fun reset(): Boolean {