Change to fix_property_atom to allow virtual override of grow_arrays() function
This commit is contained in:
@ -134,7 +134,6 @@ FixPropertyAtom::FixPropertyAtom(LAMMPS *lmp, int narg, char **arg) :
|
||||
// register with Atom class
|
||||
|
||||
nmax_old = 0;
|
||||
grow_arrays(atom->nmax);
|
||||
atom->add_callback(0);
|
||||
atom->add_callback(1);
|
||||
if (border) atom->add_callback(2);
|
||||
@ -190,6 +189,8 @@ int FixPropertyAtom::setmask()
|
||||
|
||||
void FixPropertyAtom::init()
|
||||
{
|
||||
grow_arrays(atom->nmax);
|
||||
|
||||
// error if atom style has changed since fix was defined
|
||||
// don't allow this b/c user could change to style that defines molecule,q
|
||||
|
||||
|
||||
Reference in New Issue
Block a user