forked from lijiext/lammps
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@1896 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
5df708941e
commit
87da10e490
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue