Skip to content

Commit

Permalink
Fixed notification message (#7693)
Browse files Browse the repository at this point in the history
  • Loading branch information
casella committed Jul 14, 2021
1 parent e22e48e commit 961d274
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
Expand Up @@ -1009,15 +1009,15 @@ int initRuntimeAndSimulation(int argc, char**argv, DATA *data, threadData_t *thr
}
if(omc_flag[FLAG_LSS_MIN_SIZE]) {
linearSparseSolverMinSize = atoi(omc_flagValue[FLAG_LSS_MIN_SIZE]);
infoStreamPrint(LOG_STDOUT, 0, "Maximum system size for using linear sparse solver changed to %d", linearSparseSolverMinSize);
infoStreamPrint(LOG_STDOUT, 0, "Minimum system size for using linear sparse solver changed to %d", linearSparseSolverMinSize);
}
if(omc_flag[FLAG_NLS_MAX_DENSITY]) {
nonlinearSparseSolverMaxDensity = atof(omc_flagValue[FLAG_NLS_MAX_DENSITY]);
infoStreamPrint(LOG_STDOUT, 0, "Maximum density for using non-linear sparse solver changed to %f", nonlinearSparseSolverMaxDensity);
}
if(omc_flag[FLAG_NLS_MIN_SIZE]) {
nonlinearSparseSolverMinSize = atoi(omc_flagValue[FLAG_NLS_MIN_SIZE]);
infoStreamPrint(LOG_STDOUT, 0, "Maximum system size for using non-linear sparse solver changed to %d", nonlinearSparseSolverMinSize);
infoStreamPrint(LOG_STDOUT, 0, "Minimum system size for using non-linear sparse solver changed to %d", nonlinearSparseSolverMinSize);
}
if(omc_flag[FLAG_NEWTON_XTOL]) {
newtonXTol = atof(omc_flagValue[FLAG_NEWTON_XTOL]);
Expand Down
2 changes: 1 addition & 1 deletion testsuite/openmodelica/cruntime/simoptions/nlssMinSize.mos
Expand Up @@ -19,7 +19,7 @@ simulate(M, simflags="-nlssMinSize=1"); getErrorString();
// record SimulationResult
// resultFile = "M_res.mat",
// simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'M', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = '-nlssMinSize=1'",
// messages = "stdout | info | Maximum system size for using non-linear sparse solver changed to 1
// messages = "stdout | info | Minimum system size for using non-linear sparse solver changed to 1
// LOG_SUCCESS | info | The initialization finished successfully without homotopy method.
// LOG_SUCCESS | info | The simulation finished successfully.
// "
Expand Down
8 changes: 4 additions & 4 deletions testsuite/simulation/modelica/linear_system/NPendulum.mos
Expand Up @@ -136,28 +136,28 @@ res := OpenModelica.Scripting.compareSimulationResults("NPendulum.pendulum_res.m
// {"NPendulum.pendulum","NPendulum.pendulum_init.xml"}
// ""
// 0
// "stdout | info | Maximum system size for using linear sparse solver changed to 4001
// "stdout | info | Minimum system size for using linear sparse solver changed to 4001
// LOG_SUCCESS | info | The initialization finished successfully without homotopy method.
// LOG_SUCCESS | info | The simulation finished successfully.
// "
// true
// {"Files Equal!"}
// 0
// "stdout | info | Maximum system size for using linear sparse solver changed to 4001
// "stdout | info | Minimum system size for using linear sparse solver changed to 4001
// LOG_SUCCESS | info | The initialization finished successfully without homotopy method.
// LOG_SUCCESS | info | The simulation finished successfully.
// "
// true
// {"Files Equal!"}
// 0
// "stdout | info | Maximum system size for using linear sparse solver changed to 4001
// "stdout | info | Minimum system size for using linear sparse solver changed to 4001
// LOG_SUCCESS | info | The initialization finished successfully without homotopy method.
// LOG_SUCCESS | info | The simulation finished successfully.
// "
// true
// {"Files Equal!"}
// 0
// "stdout | info | Maximum system size for using linear sparse solver changed to 4001
// "stdout | info | Minimum system size for using linear sparse solver changed to 4001
// LOG_SUCCESS | info | The initialization finished successfully without homotopy method.
// LOG_SUCCESS | info | The simulation finished successfully.
// "
Expand Down
4 changes: 2 additions & 2 deletions testsuite/simulation/modelica/linear_system/NPendulum40.mos
Expand Up @@ -31,12 +31,12 @@ res := OpenModelica.Scripting.compareSimulationResults("NPendulum.pendulum40_res
// true
// {"NPendulum.pendulum40","NPendulum.pendulum40_init.xml"}
// ""
// stdout | info | Maximum system size for using linear sparse solver changed to 4001
// stdout | info | Minimum system size for using linear sparse solver changed to 4001
// LOG_SUCCESS | info | The initialization finished successfully without homotopy method.
// LOG_SUCCESS | info | The simulation finished successfully.
// 0
// {"Files Equal!"}
// stdout | info | Maximum system size for using linear sparse solver changed to 4001
// stdout | info | Minimum system size for using linear sparse solver changed to 4001
// LOG_SUCCESS | info | The initialization finished successfully without homotopy method.
// LOG_SUCCESS | info | The simulation finished successfully.
// 0
Expand Down

0 comments on commit 961d274

Please sign in to comment.