consolidate enum into header file
This commit is contained in:
@ -32,15 +32,11 @@
|
|||||||
using namespace LAMMPS_NS;
|
using namespace LAMMPS_NS;
|
||||||
using namespace FixConst;
|
using namespace FixConst;
|
||||||
|
|
||||||
enum{DEFAULT,NPARTNER,PERPARTNER}; // also set in fix neigh/history
|
|
||||||
|
|
||||||
|
|
||||||
FixNeighHistoryOMP::FixNeighHistoryOMP(class LAMMPS *lmp,int narg,char **argv)
|
FixNeighHistoryOMP::FixNeighHistoryOMP(class LAMMPS *lmp,int narg,char **argv)
|
||||||
: FixNeighHistory(lmp,narg,argv) {
|
: FixNeighHistory(lmp,narg,argv) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* ----------------------------------------------------------------------
|
/* ----------------------------------------------------------------------
|
||||||
copy partner info from neighbor data structs (NDS) to atom arrays
|
copy partner info from neighbor data structs (NDS) to atom arrays
|
||||||
should be called whenever NDS store current history info
|
should be called whenever NDS store current history info
|
||||||
|
|||||||
@ -30,8 +30,6 @@
|
|||||||
using namespace LAMMPS_NS;
|
using namespace LAMMPS_NS;
|
||||||
using namespace FixConst;
|
using namespace FixConst;
|
||||||
|
|
||||||
enum{DEFAULT,NPARTNER,PERPARTNER}; // also set in fix neigh/history/omp
|
|
||||||
|
|
||||||
/* ---------------------------------------------------------------------- */
|
/* ---------------------------------------------------------------------- */
|
||||||
|
|
||||||
FixNeighHistory::FixNeighHistory(LAMMPS *lmp, int narg, char **arg) :
|
FixNeighHistory::FixNeighHistory(LAMMPS *lmp, int narg, char **arg) :
|
||||||
|
|||||||
@ -95,6 +95,8 @@ class FixNeighHistory : public Fix {
|
|||||||
|
|
||||||
// Shift by HISTBITS and check the first bit
|
// Shift by HISTBITS and check the first bit
|
||||||
inline int histmask(int j) const { return j >> HISTBITS & 1; }
|
inline int histmask(int j) const { return j >> HISTBITS & 1; }
|
||||||
|
|
||||||
|
enum { DEFAULT, NPARTNER, PERPARTNER };
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace LAMMPS_NS
|
} // namespace LAMMPS_NS
|
||||||
|
|||||||
Reference in New Issue
Block a user