Skip to content

Commit b0b4602

Browse files
committed
Remove workaround for dummy state in dassl solver since there is no dummy state for algebraic systems anymore.
1 parent 97f744c commit b0b4602

File tree

1 file changed

+1
-9
lines changed
  • SimulationRuntime/c/simulation/solver

1 file changed

+1
-9
lines changed

SimulationRuntime/c/simulation/solver/dassl.c

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -378,15 +378,7 @@ int dassl_initial(DATA* data, SOLVER_INFO* solverInfo, DASSL_DATA *dasslData)
378378
{
379379
if (data->callback->initialAnalyticJacobianA(data))
380380
{
381-
/* TODO: check that the one states is dummy */
382-
if(data->modelData.nStates == 1)
383-
{
384-
infoStreamPrint(LOG_SOLVER, 0, "No SparsePattern, since there are no states! Switch back to normal.");
385-
}
386-
else
387-
{
388-
infoStreamPrint(LOG_STDOUT, 0, "Jacobian or SparsePattern is not generated or failed to initialize! Switch back to normal.");
389-
}
381+
infoStreamPrint(LOG_STDOUT, 0, "Jacobian or SparsePattern is not generated or failed to initialize! Switch back to normal.");
390382
dasslData->dasslJacobian = DASSL_INTERNALNUMJAC;
391383
}
392384
else

0 commit comments

Comments
 (0)