fix syntax issues
This commit is contained in:
@ -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.
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user