Skip to content

Commit

Permalink
- fix for non terminating stateSelection
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@21590 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Marcus Walther committed Jul 22, 2014
1 parent 52bcf3f commit d96be3c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SimulationRuntime/cpp/Solver/CVode/CVode.cpp
Expand Up @@ -334,6 +334,7 @@ void Cvode::CVodeCore()
if (state_selection)
{
//restart = true;
_continuous_system->getContinuousStates(_z);
//_continuous_system->evaluateODE(IContinuous::CONTINUOUS);
}
_zeroFound = false;
Expand Down Expand Up @@ -520,7 +521,7 @@ void Cvode::giveZeroVal(const double &t, const double *y, double *zeroValue)
_continuous_system->setContinuousStates(y);

// System aktualisieren
_continuous_system->evaluateZeroFuncs(IContinuous::CONTINUOUS);
_continuous_system->evaluateZeroFuncs(IContinuous::DISCRETE);

_event_system->getZeroFunc(zeroValue);

Expand Down

0 comments on commit d96be3c

Please sign in to comment.