Commit 2f98f4ad 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@15761 f3b2605a-c512-4ea7-a41b-209d697bcdaa
parent 0145275c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2108,7 +2108,8 @@ double FixGCMC::energy_full()
  int eflag = 1;
  int vflag = 0;

  //  force_clear();
  // clear forces because they are used by fix shake 
  
  int nbytes = sizeof(double) * (atom->nlocal + atom->nghost);
  memset(&atom->f[0][0],0,3*nbytes);