delay part of the variable.cpp refactoring until we have better unit testing for it.

This commit is contained in:
Axel Kohlmeyer
2021-04-23 16:50:35 -04:00
parent f47333bebf
commit 99fa6ed4b4
2 changed files with 13 additions and 13 deletions

View File

@ -4109,7 +4109,7 @@ int Variable::special_function(char *word, char *contents, Tree **tree,
Fix *fix = nullptr;
int index,nvec,nstride;
char *ptr1,*ptr2;
ivar = -1;
int ivar = -1;
// argument is compute
@ -4387,7 +4387,7 @@ int Variable::special_function(char *word, char *contents, Tree **tree,
if (narg != 1)
print_var_error(FLERR,"Invalid special function in variable formula",ivar);
ivar = find(args[0]);
int ivar = find(args[0]);
if (ivar < 0) {
std::string mesg = "Variable ID '";
mesg += args[0];
@ -4399,7 +4399,7 @@ int Variable::special_function(char *word, char *contents, Tree **tree,
// save value in tree or on argstack
if (style[ivar] == SCALARFILE) {
value = atof(data[ivar][0]);
double value = atof(data[ivar][0]);
int done = reader[ivar]->read_scalar(data[ivar][0]);
if (done) remove(ivar);