restore variable declaration

This commit is contained in:
Axel Kohlmeyer
2021-04-23 16:32:39 -04:00
parent 15ce976dba
commit b7272bbbf7
2 changed files with 4 additions and 4 deletions

View File

@ -1894,7 +1894,7 @@ double Variable::evaluate(char *str, Tree **tree, int ivar)
} else if (strncmp(word,"v_",2) == 0) {
ivar = find(word+2);
int ivar = find(word+2);
if (ivar < 0)
print_var_error(FLERR,fmt::format("Invalid variable reference "
"{} in variable formula",word),ivar);