Skip to content

Commit

Permalink
Update linear system debugging
Browse files Browse the repository at this point in the history
Belonging to [master]:
  - OpenModelica/OMCompiler#1928
  • Loading branch information
sjoelund authored and OpenModelica-Hudson committed Oct 19, 2017
1 parent 04560c9 commit ec1d292
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions SimulationRuntime/c/simulation/solver/linearSystem.c
Expand Up @@ -415,6 +415,10 @@ int solve_linear_system(DATA *data, threadData_t *threadData, int sysNumber)
case LSS_LIS:
success = solveLis(data, threadData, sysNumber);
break;
#else
case LSS_LIS_NOT_AVAILABLE:
throwStreamPrint(threadData, "OMC is compiled without UMFPACK, if you want use umfpack please compile OMC with UMFPACK.");
break;
#endif
#ifdef WITH_UMFPACK
case LSS_KLU:
Expand All @@ -429,13 +433,13 @@ int solve_linear_system(DATA *data, threadData_t *threadData, int sysNumber)
}
break;
#else
case LSS_KLU:
case LSS_UMFPACK:
throwStreamPrint(threadData, "OMC is compiled without UMFPACK, if you want use umfpack please compile OMC with UMFPACK.");
break;
#endif

default:
throwStreamPrint(threadData, "unrecognized linear solver");
throwStreamPrint(threadData, "unrecognized sparse linear solver (%d)", data->simulationInfo->lssMethod);
}
}

Expand Down Expand Up @@ -506,7 +510,7 @@ int solve_linear_system(DATA *data, threadData_t *threadData, int sysNumber)
break;

default:
throwStreamPrint(threadData, "unrecognized linear solver");
throwStreamPrint(threadData, "unrecognized dense linear solver (%d)", data->simulationInfo->lsMethod);
}
}
linsys->solved = success;
Expand Down

0 comments on commit ec1d292

Please sign in to comment.