Skip to content

Commit

Permalink
Increase tolerance for communicationPoint synchroinzation
Browse files Browse the repository at this point in the history
see #154
  • Loading branch information
t-sommer committed Apr 20, 2020
1 parent 81dcabf commit 20143b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grtfmi/fmi2Functions.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 20143b8

Please sign in to comment.