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