replace some numeric constants in Atom and AtomVec classes with enumerators
This commit is contained in:
@ -136,9 +136,9 @@ FixPropertyAtom::FixPropertyAtom(LAMMPS *lmp, int narg, char **arg) :
|
||||
nmax_old = 0;
|
||||
if (!lmp->kokkos)
|
||||
grow_arrays(atom->nmax);
|
||||
atom->add_callback(0);
|
||||
atom->add_callback(1);
|
||||
if (border) atom->add_callback(2);
|
||||
atom->add_callback(Atom::GROW);
|
||||
atom->add_callback(Atom::RESTART);
|
||||
if (border) atom->add_callback(Atom::BORDER);
|
||||
}
|
||||
|
||||
/* ---------------------------------------------------------------------- */
|
||||
@ -147,9 +147,9 @@ FixPropertyAtom::~FixPropertyAtom()
|
||||
{
|
||||
// unregister callbacks to this fix from Atom class
|
||||
|
||||
atom->delete_callback(id,0);
|
||||
atom->delete_callback(id,1);
|
||||
if (border) atom->delete_callback(id,2);
|
||||
atom->delete_callback(id,Atom::GROW);
|
||||
atom->delete_callback(id,Atom::RESTART);
|
||||
if (border) atom->delete_callback(id,Atom::BORDER);
|
||||
|
||||
// deallocate per-atom vectors in Atom class
|
||||
// set ptrs to NULL, so they no longer exist for Atom class
|
||||
@ -211,7 +211,7 @@ void FixPropertyAtom::read_data_section(char *keyword, int n, char *buf,
|
||||
char *next;
|
||||
|
||||
int mapflag = 0;
|
||||
if (atom->map_style == 0) {
|
||||
if (atom->map_style == Atom::MAP_NONE) {
|
||||
mapflag = 1;
|
||||
atom->map_init();
|
||||
atom->map_set();
|
||||
|
||||
Reference in New Issue
Block a user