You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 18, 2019. It is now read-only.
Copy file name to clipboardExpand all lines: SimulationRuntime/cpp/Solver/CVode/CVode.cpp
+9-2Lines changed: 9 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -547,8 +547,15 @@ void Cvode::CVodeCore()
547
547
_tLastEvent = _tCurrent;
548
548
_event_n = 0;
549
549
}
550
-
else
551
-
throwModelicaSimulationError(EVENT_HANDLING,"Number of events exceeded in time interval " + to_string(_abs) + " at time " + to_string(_tCurrent));
550
+
else{
551
+
std::stringstream zeros;
552
+
_idid = CVodeGetRootInfo(_cvodeMem, _zeroSign);
553
+
for (int i = 0; i < _dimZeroFunc; i++){
554
+
if(_zeroSign[i]!=0)
555
+
zeros << i << "";
556
+
}
557
+
throwModelicaSimulationError(EVENT_HANDLING,"Number of events of zero function(s) " + zeros.str() + "exceeded in time interval " + to_string(_abs) + " at time " + to_string(_tCurrent));
558
+
}
552
559
553
560
// CVode has interpolated the states at time 'tCurrent'
0 commit comments