refactor variable info in Info class, make info accessible from library interface

This commit is contained in:
Axel Kohlmeyer
2023-08-25 23:55:24 -04:00
parent 5b5210130c
commit d864b4789f
9 changed files with 93 additions and 20 deletions

View File

@ -177,7 +177,8 @@ void *lammps_extract_compute(void *handle, const char *, int, int);
void *lammps_extract_fix(void *handle, const char *, int, int, int, int);
void *lammps_extract_variable(void *handle, const char *, const char *);
int lammps_extract_variable_datatype(void *handle, const char *name);
int lammps_set_variable(void *, char *, char *);
int lammps_set_variable(void *handle, char *name, char *str);
int lammps_variable_info(void *handle, int idx, char *buf, int bufsize);
/* ----------------------------------------------------------------------
* Library functions for scatter/gather operations of data
@ -198,11 +199,11 @@ void lammps_gather_impropers(void *handle, void *data);
void lammps_gather(void *handle, const char *name, int type, int count, void *data);
void lammps_gather_concat(void *handle, const char *name, int type, int count, void *data);
void lammps_gather_subset(void *handle, const char *name, int type, int count, int ndata,
int *ids, void *data);
void lammps_gather_subset(void *handle, const char *name, int type, int count, int ndata, int *ids,
void *data);
void lammps_scatter(void *handle, const char *name, int type, int count, void *data);
void lammps_scatter_subset(void *handle, const char *name, int type, int count, int ndata,
int *ids, void *data);
void lammps_scatter_subset(void *handle, const char *name, int type, int count, int ndata, int *ids,
void *data);
#if !defined(LAMMPS_BIGBIG)
int lammps_create_atoms(void *handle, int n, const int *id, const int *type, const double *x,