Skip to content
Snippets Groups Projects
Commit 7c6c4a51 authored by Giovanni Bussi's avatar Giovanni Bussi
Browse files

Plumed now crashes when there is an error parsing matheval expression

parent 60ec450a
No related branches found
No related tags found
No related merge requests found
......@@ -115,6 +115,8 @@ names(getNumberOfArguments())
evaluator=evaluator_create(const_cast<char*>(func.c_str()));
if(!evaluator) error("There was some problem in parsing matheval formula "+func);
char **check_names;
int check_count;
evaluator_get_variables(evaluator,&check_names,&check_count);
......
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