git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@15083 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -251,7 +251,7 @@ void FixAddForce::post_force(int vflag)
|
||||
|
||||
// reallocate sforce array if necessary
|
||||
|
||||
if ((varflag == ATOM || estyle == ATOM) && nlocal > maxatom) {
|
||||
if ((varflag == ATOM || estyle == ATOM) && atom->nmax > maxatom) {
|
||||
maxatom = atom->nmax;
|
||||
memory->destroy(sforce);
|
||||
memory->create(sforce,maxatom,4,"addforce:sforce");
|
||||
|
||||
Reference in New Issue
Block a user