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

This commit is contained in:
sjplimp
2012-06-19 21:40:32 +00:00
parent 9733df5929
commit b96c9934ca
2 changed files with 2 additions and 2 deletions

View File

@ -113,5 +113,5 @@ void ComputeGyration::compute_vector()
MPI_Allreduce(rg,vector,6,MPI_DOUBLE,MPI_SUM,world);
if (masstotal == 0.0) return;
for (int i = 0; i < 6; i++) vector[i] = sqrt(vector[i]/masstotal);
for (int i = 0; i < 6; i++) vector[i] /= masstotal;
}