Skip to content
Snippets Groups Projects
Commit 38fe128e authored by Joan Vallvé Navarro's avatar Joan Vallvé Navarro
Browse files

added assert checking correct user input for prior_mode

parent dd3f387f
No related branches found
No related tags found
No related merge requests found
Pipeline #6526 passed
...@@ -176,6 +176,7 @@ ProblemPtr Problem::autoSetup(ParamsServer &_server) ...@@ -176,6 +176,7 @@ ProblemPtr Problem::autoSetup(ParamsServer &_server)
// Prior // Prior
std::string prior_mode = _server.getParam<std::string>("problem/prior/mode"); std::string prior_mode = _server.getParam<std::string>("problem/prior/mode");
assert((prior_mode == "nothing" || prior_mode == "initial_guess" || prior_mode == "fix" || prior_mode == "factor") && "wrong _mode value, it should be: 'nothing', 'initial_guess', 'fix' or 'factor'");
WOLF_TRACE("Prior mode: ", prior_mode); WOLF_TRACE("Prior mode: ", prior_mode);
if (prior_mode == "nothing") if (prior_mode == "nothing")
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment