Skip to content

Commit

Permalink
[daeMode] fix decision when use pure algebraic solver
Browse files Browse the repository at this point in the history
  • Loading branch information
Willi Braun authored and OpenModelica-Hudson committed Oct 25, 2018
1 parent f73af46 commit 7a86b4c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SimulationRuntime/c/simulation/simulation_runtime.cpp
Expand Up @@ -648,7 +648,8 @@ static int callSolver(DATA* simData, threadData_t *threadData, string init_initM
*/
if ( (simData->modelData->nStates < 1 &&
solverID != S_OPTIMIZATION &&
solverID != S_SYM_SOLVER) ||
solverID != S_SYM_SOLVER &&
!compiledInDAEMode) ||
(compiledInDAEMode && (simData->simulationInfo->daeModeData->nResidualVars +
simData->simulationInfo->daeModeData->nAlgebraicDAEVars < 1))
)
Expand Down

0 comments on commit 7a86b4c

Please sign in to comment.