Skip to content

Commit

Permalink
[janitor] Use proper names for enum (#9280)
Browse files Browse the repository at this point in the history
  • Loading branch information
phannebohm committed Aug 5, 2022
1 parent 59ddcb6 commit 0763971
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions OMCompiler/SimulationRuntime/c/simulation/solver/gbode_main.c
Expand Up @@ -202,7 +202,7 @@ int gbodef_allocateData(DATA *data, threadData_t *threadData, SOLVER_INFO *solve
infoStreamPrint(LOG_STDOUT, 0, "Jacobian or SparsePattern is not generated or failed to initialize! Switch back to numeric Jacobians.");
} else {
if (omc_flag[FLAG_JACOBIAN]) {
if (strcmp(omc_flagValue[FLAG_JACOBIAN], JACOBIAN_METHOD[3]) == 0) {
if (strcmp(omc_flagValue[FLAG_JACOBIAN], JACOBIAN_METHOD[COLOREDSYMJAC]) == 0) {
infoStreamPrint(LOG_SOLVER,0,"Integrator uses %s for jacobian evaluation", omc_flagValue[FLAG_JACOBIAN]);
gbfData->symJacAvailable = TRUE;
}
Expand Down Expand Up @@ -385,7 +385,7 @@ int gbode_allocateData(DATA *data, threadData_t *threadData, SOLVER_INFO *solver
infoStreamPrint(LOG_STDOUT, 0, "Jacobian or SparsePattern is not generated or failed to initialize! Switch back to numeric Jacobians.");
} else {
if (omc_flag[FLAG_JACOBIAN]) {
if (strcmp(omc_flagValue[FLAG_JACOBIAN], JACOBIAN_METHOD[3]) == 0) {
if (strcmp(omc_flagValue[FLAG_JACOBIAN], JACOBIAN_METHOD[COLOREDSYMJAC]) == 0) {
infoStreamPrint(LOG_SOLVER,0,"Integrator uses %s for jacobian evaluation", omc_flagValue[FLAG_JACOBIAN]);
gbData->symJacAvailable = TRUE;
}
Expand Down

0 comments on commit 0763971

Please sign in to comment.