Adding fix spring/self/kk, needed to add maxatom to fix spring/self, may need resize xoriginal as well
This commit is contained in:
@ -73,6 +73,7 @@ FixSpringSelf::FixSpringSelf(LAMMPS *lmp, int narg, char **arg) :
|
||||
// register with Atom class
|
||||
|
||||
xoriginal = nullptr;
|
||||
maxatom = atom->nmax;
|
||||
FixSpringSelf::grow_arrays(atom->nmax);
|
||||
atom->add_callback(Atom::GROW);
|
||||
atom->add_callback(Atom::RESTART);
|
||||
|
||||
Reference in New Issue
Block a user