fix syntax issues

This commit is contained in:
Axel Kohlmeyer
2023-08-04 17:13:53 -04:00
parent b248211eb5
commit 7adb2d7bcf
3 changed files with 7 additions and 6 deletions

View File

@ -57,9 +57,10 @@ FixVector::FixVector(LAMMPS *lmp, int narg, char **arg) :
val.id = argi.get_name(); val.id = argi.get_name();
val.val.c = nullptr; val.val.c = nullptr;
if ((val.which == ArgInfo::UNKNOWN) || (val.which == ArgInfo::NONE) || (argi.get_dim() > 1)) if ((val.which == ArgInfo::UNKNOWN) || (argi.get_dim() > 1))
error->all(FLERR, "Invalid fix vector argument: {}", arg[iarg]); error->all(FLERR, "Invalid fix vector argument: {}", arg[iarg]);
if (val.which == ArgInfo::NONE) break;
values.push_back(val); values.push_back(val);
++iarg; ++iarg;
} }

View File

@ -50,10 +50,10 @@ class FixVector : public Fix {
bigint nextstep, initialstep; bigint nextstep, initialstep;
int ncount; // # of values currently in growing vector or array bigint ncount; // # of values processed and stored into growing vector or array
int ncountmax; // max # of values vector/array can hold bigint ncountmax; // max # of values vector/array can hold
int nmaxval; // maximum allowed number of values bigint nmaxval; // maximum allowed number of values
int nindex; // start index of data, may wrap around bigint nindex; // start index of data, may wrap around
double *vector; double *vector;
double **array; double **array;