modernize fix vector

This commit is contained in:
Axel Kohlmeyer
2022-08-16 22:56:29 -04:00
parent 301d379db8
commit 8dbe981a1a
2 changed files with 136 additions and 126 deletions

View File

@ -36,9 +36,17 @@ class FixVector : public Fix {
double compute_array(int, int) override;
private:
int nvalues;
int *which, *argindex, *value2index;
char **ids;
struct value_t {
int which;
int argindex;
std::string id;
union {
class Compute *c;
class Fix *f;
int v;
} val;
};
std::vector<value_t> values;
bigint nextstep, initialstep;
@ -47,8 +55,6 @@ class FixVector : public Fix {
double *vector;
double **array;
};
} // namespace LAMMPS_NS
#endif
#endif