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

This commit is contained in:
sjplimp 2008-06-09 22:57:54 +00:00
parent 5df708941e
commit 87da10e490
1 changed files with 1 additions and 0 deletions

View File

@ -165,6 +165,7 @@ void FixSpringSelf::post_force_respa(int vflag, int ilevel, int iloop)
double FixSpringSelf::compute_scalar()
{
espring *= 0.5;
double all;
MPI_Allreduce(&espring,&all,1,MPI_DOUBLE,MPI_SUM,world);
return all;