Skip to content

Commit

Permalink
Remove workaround for algebraic systems
Browse files Browse the repository at this point in the history
  • Loading branch information
lochel committed May 17, 2015
1 parent 6c53415 commit c5fb326
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions SimulationRuntime/c/simulation/solver/perform_qss_simulation.c
Expand Up @@ -73,6 +73,7 @@ modelica_integer prefixedName_performQSSSimulation(DATA* data, SOLVER_INFO* solv
TRACE_PUSH

SIMULATION_INFO *simInfo = &(data->simulationInfo);
MODEL_DATA *mData = &(data->modelData);
uinteger currStepNo = 0;
modelica_integer retValIntegrator = 0;
modelica_integer retValue = 0;
Expand All @@ -84,14 +85,7 @@ modelica_integer prefixedName_performQSSSimulation(DATA* data, SOLVER_INFO* solv

if (data->callback->initialAnalyticJacobianA(data))
{
if (data->modelData.nStates == 1) /* TODO: is it the dummy state? */
{
infoStreamPrint(LOG_SOLVER, 0, "No sparse pattern, since there are no states.");
}
else
{
infoStreamPrint(LOG_STDOUT, 0, "Jacobian or sparse pattern is not generated or failed to initialize.");
}
infoStreamPrint(LOG_STDOUT, 0, "Jacobian or sparse pattern is not generated or failed to initialize.");
return UNKNOWN;
}
printSparseStructure(data, LOG_SOLVER);
Expand Down

0 comments on commit c5fb326

Please sign in to comment.