move fix property/atom property type enumerator to class definition in header

This commit is contained in:
Axel Kohlmeyer
2023-03-22 15:02:14 -04:00
parent 4351ada794
commit b5e1bbfa6f
3 changed files with 2 additions and 5 deletions

View File

@ -24,8 +24,6 @@
using namespace LAMMPS_NS; using namespace LAMMPS_NS;
using namespace FixConst; using namespace FixConst;
enum{MOLECULE,CHARGE,RMASS,INTEGER,DOUBLE};
/* ---------------------------------------------------------------------- */ /* ---------------------------------------------------------------------- */
FixPropertyAtomKokkos::FixPropertyAtomKokkos(LAMMPS *lmp, int narg, char **arg) : FixPropertyAtomKokkos::FixPropertyAtomKokkos(LAMMPS *lmp, int narg, char **arg) :

View File

@ -25,8 +25,6 @@
using namespace LAMMPS_NS; using namespace LAMMPS_NS;
using namespace FixConst; using namespace FixConst;
enum { MOLECULE, CHARGE, RMASS, TEMPERATURE, HEATFLOW, IVEC, DVEC, IARRAY, DARRAY };
/* ---------------------------------------------------------------------- */ /* ---------------------------------------------------------------------- */
FixPropertyAtom::FixPropertyAtom(LAMMPS *lmp, int narg, char **arg) : FixPropertyAtom::FixPropertyAtom(LAMMPS *lmp, int narg, char **arg) :

View File

@ -27,11 +27,12 @@ namespace LAMMPS_NS {
class FixPropertyAtom : public Fix { class FixPropertyAtom : public Fix {
public: public:
FixPropertyAtom(class LAMMPS *, int, char **); FixPropertyAtom(class LAMMPS *, int, char **);
~FixPropertyAtom() override; ~FixPropertyAtom() override;
int setmask() override; int setmask() override;
void init() override; void init() override;
enum { MOLECULE, CHARGE, RMASS, TEMPERATURE, HEATFLOW, IVEC, DVEC, IARRAY, DARRAY };
void read_data_section(char *, int, char *, tagint) override; void read_data_section(char *, int, char *, tagint) override;
bigint read_data_skip_lines(char *) override; bigint read_data_skip_lines(char *) override;
void write_data_section_size(int, int &, int &) override; void write_data_section_size(int, int &, int &) override;