From 20143b821ce0e172080fe4fcafc16863bfbbab18 Mon Sep 17 00:00:00 2001 From: Torsten Sommer Date: Mon, 20 Apr 2020 13:01:49 +0200 Subject: [PATCH] Increase tolerance for communicationPoint synchroinzation see #154 --- grtfmi/fmi2Functions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grtfmi/fmi2Functions.c b/grtfmi/fmi2Functions.c index eb61389..92c2515 100644 --- a/grtfmi/fmi2Functions.c +++ b/grtfmi/fmi2Functions.c @@ -460,7 +460,7 @@ fmi2Status fmi2DoStep(fmi2Component c, time_T tNext = currentCommunicationPoint + communicationStepSize; #ifdef rtmGetT - double epsilon = (1.0 + fabs(rtmGetT(S))) * DBL_EPSILON; + double epsilon = (1.0 + fabs(rtmGetT(S))) * 2 * DBL_EPSILON; while (rtmGetT(S) + STEP_SIZE < tNext + epsilon) #endif