add optional nmax keyword to fix vector to allow using it as a sliding window

This commit is contained in:
Axel Kohlmeyer
2023-07-22 00:08:17 -04:00
parent a4a206e601
commit a48f4597a2
3 changed files with 55 additions and 25 deletions

View File

@ -52,6 +52,9 @@ class FixVector : public Fix {
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
double *vector;
double **array;
};