replace some numeric constants in Atom and AtomVec classes with enumerators
This commit is contained in:
@ -256,8 +256,8 @@ FixMove::FixMove(LAMMPS *lmp, int narg, char **arg) :
|
||||
// register with Atom class
|
||||
|
||||
grow_arrays(atom->nmax);
|
||||
atom->add_callback(0);
|
||||
atom->add_callback(1);
|
||||
atom->add_callback(Atom::GROW);
|
||||
atom->add_callback(Atom::RESTART);
|
||||
|
||||
displace = velocity = NULL;
|
||||
|
||||
@ -334,8 +334,8 @@ FixMove::~FixMove()
|
||||
{
|
||||
// unregister callbacks to this fix from Atom class
|
||||
|
||||
atom->delete_callback(id,0);
|
||||
atom->delete_callback(id,1);
|
||||
atom->delete_callback(id,Atom::GROW);
|
||||
atom->delete_callback(id,Atom::RESTART);
|
||||
|
||||
// delete locally stored arrays
|
||||
|
||||
|
||||
Reference in New Issue
Block a user