convert compute chunk/spread/atom

This commit is contained in:
Axel Kohlmeyer
2022-09-30 21:42:04 -04:00
parent afc35aa7b0
commit 27d9e313f5
2 changed files with 88 additions and 85 deletions

View File

@ -33,13 +33,20 @@ class ComputeChunkSpreadAtom : public Compute {
double memory_usage() override;
protected:
int mode, nvalues;
char *idchunk;
char **ids;
int *which, *argindex, *value2index;
struct value_t {
int which;
int argindex;
std::string id;
union {
class Compute *c;
class Fix *f;
} val;
};
std::vector<value_t> values;
int nmax;
char *idchunk;
class ComputeChunkAtom *cchunk;
int nmax;
void init_chunk();
};