Skip to content

Commit 227edf4

Browse files
author
Christian SChubert
committed
minor bugfix cppRuntime: linear systems
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@17089 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent b7699f9 commit 227edf4

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Compiler/Template/CodegenCpp.tpl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1636,7 +1636,6 @@ case SIMCODE(modelInfo = MODELINFO(__)) then
16361636
{
16371637
16381638
<%initAlgloopEquation(eq,varDecls,simCode)%>
1639-
AlgLoopDefaultImplementation::initialize();
16401639
// Update the equations once before start of simulation
16411640
evaluate(IContinuous::ALL);
16421641
}

SimulationRuntime/cpp/Core/System/AlgLoopDefaultImplementation.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ void AlgLoopDefaultImplementation::initialize()
8383
++_dimAEq;
8484
}
8585
}
86+
else
87+
throw std::invalid_argument("AlgLoopDefaultImplementation::initialize(): Unknown _constraintType.");
88+
8689
//nach default algloop verschieben
8790
// Prüfen ob min. eine Bindungsgleichung vorhanden
8891
if ( _dimAEq == 0 )

0 commit comments

Comments
 (0)