Skip to content

Commit

Permalink
changed evaluate call in CVode
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@21005 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
niklwors committed Jun 6, 2014
1 parent 9a672be commit 368966f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions SimulationRuntime/cpp/Solver/CVode/CVode.cpp
Expand Up @@ -302,7 +302,7 @@ void Cvode::CVodeCore()
if(state_selection)
{
restart=true;
_continuous_system->evaluateAll(IContinuous::CONTINUOUS);
_continuous_system->evaluateODE(IContinuous::CONTINUOUS);
}
_zeroFound = false;

Expand Down Expand Up @@ -338,7 +338,7 @@ void Cvode::CVodeCore()
}
_time_system->setTime(_tCurrent);
_continuous_system->setContinuousStates(NV_DATA_S(_CV_y));
_continuous_system->evaluateAll(IContinuous::CONTINUOUS );
_continuous_system->evaluateODE(IContinuous::CONTINUOUS );
// Zustände recorden bis hierher
if (_cvodesettings->getEventOutput())
writeToFile(0, _tCurrent, _h);
Expand Down Expand Up @@ -379,7 +379,7 @@ void Cvode::CVodeCore()
{
_time_system->setTime(_tEnd);
_continuous_system->setContinuousStates(NV_DATA_S(_CV_y));
_continuous_system->evaluateAll(IContinuous::CONTINUOUS);
_continuous_system->evaluateODE(IContinuous::CONTINUOUS);
writeToFile(0, _tEnd, _h);
_solverStatus = DONE;
writeToFile(0, _tEnd, _h);
Expand Down Expand Up @@ -435,7 +435,7 @@ int Cvode::calcFunction(const double& time, const double* y, double* f)
{
_time_system->setTime(time);
_continuous_system->setContinuousStates(y);
_continuous_system->evaluateAll(IContinuous::CONTINUOUS);
_continuous_system->evaluateODE(IContinuous::CONTINUOUS);
_continuous_system->getRHS(f);


Expand Down

0 comments on commit 368966f

Please sign in to comment.