Commit 0145275c authored by athomps's avatar athomps
Browse files

Added fix for problem with energy_full and shake

git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@15760 f3b2605a-c512-4ea7-a41b-209d697bcdaa
parent 1ce8f147
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2108,6 +2108,10 @@ double FixGCMC::energy_full()
  int eflag = 1;
  int vflag = 0;

  //  force_clear();
  int nbytes = sizeof(double) * (atom->nlocal + atom->nghost);
  memset(&atom->f[0][0],0,3*nbytes);

  if (modify->n_pre_force) modify->pre_force(vflag);

  if (force->pair) force->pair->compute(eflag,vflag);