print error message in one line

This commit is contained in:
Yaser Afshar
2021-11-28 18:58:56 -06:00
parent 76eb4f8057
commit 6d47160bef

View File

@ -4430,11 +4430,10 @@ int Variable::labelmap_function(char *word, char *contents, Tree **tree,
return 0; return 0;
if (!atom->labelmapflag) if (!atom->labelmapflag)
print_var_error(FLERR,"Invalid type label in " print_var_error(FLERR,"Invalid type label in variable formula",ivar);
"variable formula",ivar);
int value; int value;
std::string typestr = contents; std::string typestr(contents);
if (strcmp(word,"label") == 0) { if (strcmp(word,"label") == 0) {
value = atom->find_label(typestr,Atom::ATOM); value = atom->find_label(typestr,Atom::ATOM);
@ -4453,8 +4452,7 @@ int Variable::labelmap_function(char *word, char *contents, Tree **tree,
} }
if (value == -1) if (value == -1)
print_var_error(FLERR,"Invalid type label in " print_var_error(FLERR,"Invalid type label in variable formula",ivar);
"variable formula",ivar);
// save value in tree or on argstack // save value in tree or on argstack