git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@5835 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp
2011-03-25 21:13:51 +00:00
parent e3cf018311
commit fbb475b9cd
149 changed files with 1402 additions and 1660 deletions

View File

@ -81,7 +81,7 @@ FixEfield::~FixEfield()
delete [] xstr;
delete [] ystr;
delete [] zstr;
memory->destroy_2d_double_array(efield);
memory->destroy(efield);
}
/* ---------------------------------------------------------------------- */
@ -162,8 +162,8 @@ void FixEfield::post_force(int vflag)
if (varflag == ATOM && nlocal > maxatom) {
maxatom = atom->nmax;
memory->destroy_2d_double_array(efield);
efield = memory->create_2d_double_array(maxatom,3,"efield:efield");
memory->destroy(efield);
memory->create(efield,maxatom,3,"efield:efield");
}
if (varflag == CONSTANT) {