From ab8f709ec2361b05a0add747c76a37ab597973e0 Mon Sep 17 00:00:00 2001 From: Tim Uebelhoer <tim.uebelhoer@rwth-aachen.de> Date: Mon, 4 Dec 2017 23:09:29 +0100 Subject: [PATCH] Exit simulation on fatal error --- Simulation/FMUEngine.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Simulation/FMUEngine.cpp b/Simulation/FMUEngine.cpp index fe7c15b..0b5b439 100644 --- a/Simulation/FMUEngine.cpp +++ b/Simulation/FMUEngine.cpp @@ -77,7 +77,8 @@ namespace Simulation fmi2False); if (status == fmi2Error || status == fmi2Fatal) { - break; // Simulation no longer possible + onLog(pair.first, status, "FmuEngine", "Error on DoStep. Cannot continue the simulation!"); + return; // Simulation no longer possible } } -- GitLab