make enum use consistent by moving it to the header

This commit is contained in:
Axel Kohlmeyer
2025-06-30 16:29:52 -04:00
parent de97c8acdd
commit de41dd53b2
3 changed files with 3 additions and 5 deletions

View File

@ -21,8 +21,6 @@
using namespace LAMMPS_NS;
using namespace FixConst;
enum{SETCOMMAND,FIXSET}; // also used in Set class
/* ---------------------------------------------------------------------- */
FixSet::FixSet(LAMMPS *lmp, int narg, char **arg) : Fix(lmp, narg, arg)
@ -45,7 +43,7 @@ FixSet::FixSet(LAMMPS *lmp, int narg, char **arg) : Fix(lmp, narg, arg)
// NOTE: could also allow when set style = region,
// since atoms may move in/out of regions
set->process_args(FIXSET,narg-5,&arg[5]);
set->process_args(Set::FIXSET, narg-5, &arg[5]);
}
/* ---------------------------------------------------------------------- */

View File

@ -42,8 +42,6 @@
using namespace LAMMPS_NS;
using namespace MathConst;
enum{SETCOMMAND,FIXSET}; // also used in FixSet class
enum{ATOM_SELECT,MOL_SELECT,TYPE_SELECT,GROUP_SELECT,REGION_SELECT};
enum{ANGLE,ANGMOM,APIP_LAMBDA,BOND,CC,CHARGE,DENSITY,DIAMETER,DIHEDRAL,DIPOLE,

View File

@ -35,6 +35,8 @@ class Set : public Command {
void selection(int);
void invoke_actions();
enum { SETCOMMAND, FIXSET };
private:
int caller; // SETCOMMAND or FIXSET