Skip to content

Commit

Permalink
- fix in SolverDefaultImplemention init
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@12922 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
niklwors committed Sep 13, 2012
1 parent 9c9fe31 commit c22336a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,6 @@ void Cvode::init()
//

// Set initial values for CVODE

// System und Events aktualisieren
continous_system->update(IContinous::CONTINOUS);
// giveVars (Zustand holen)
continous_system->giveVars(_zInit);
memcpy(_z,_zInit,_dimSys*sizeof(double));
Expand Down Expand Up @@ -222,6 +219,8 @@ void Cvode::init()
// CVODE is ready for integration
//
SolverDefaultImplementation::init();
// System und Events aktualisieren
continous_system->update(IContinous::CONTINOUS);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ void SolverDefaultImplementation::init()
_system->writeOutput(IDAESystem::HEAD_LINE);

// Allocate array with values of zero functions
if (_dimZeroFunc != event_system->getDimZeroFunc())
if (event_system->getDimZeroFunc() > 0)
{
// Number (dimension) of zero functions
_dimZeroFunc = event_system->getDimZeroFunc();
Expand Down

0 comments on commit c22336a

Please sign in to comment.