Skip to content

Commit

Permalink
minor bugfix cppRuntime: linear systems
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@17089 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Christian SChubert committed Sep 6, 2013
1 parent b7699f9 commit 227edf4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion Compiler/Template/CodegenCpp.tpl
Expand Up @@ -1636,7 +1636,6 @@ case SIMCODE(modelInfo = MODELINFO(__)) then
{
<%initAlgloopEquation(eq,varDecls,simCode)%>
AlgLoopDefaultImplementation::initialize();
// Update the equations once before start of simulation
evaluate(IContinuous::ALL);
}
Expand Down
Expand Up @@ -83,6 +83,9 @@ void AlgLoopDefaultImplementation::initialize()
++_dimAEq;
}
}
else
throw std::invalid_argument("AlgLoopDefaultImplementation::initialize(): Unknown _constraintType.");

//nach default algloop verschieben
// Prüfen ob min. eine Bindungsgleichung vorhanden
if ( _dimAEq == 0 )
Expand Down

0 comments on commit 227edf4

Please sign in to comment.