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

@ -193,6 +193,6 @@ Defaults
""""""""
The default value of *nmax* is deduced from the number of steps
in a run (or multiple runs when using the *start* and *stop*
in a run (or multiple runs when using the *start* and *stop*
keywords of the :doc:`run command <run>`) divided by the choice
of *Nevery* plus 1.

View File

@ -57,9 +57,10 @@ FixVector::FixVector(LAMMPS *lmp, int narg, char **arg) :
val.id = argi.get_name();
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]);
if (val.which == ArgInfo::NONE) break;
values.push_back(val);
++iarg;
}

View File

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