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

This commit is contained in:
sjplimp
2007-11-13 19:47:52 +00:00
parent 18456c04f9
commit 9e157db3d2
4 changed files with 4 additions and 4 deletions

View File

@ -405,5 +405,5 @@ double FixAveTime::compute_scalar()
double FixAveTime::compute_vector(int n) double FixAveTime::compute_vector(int n)
{ {
if (norm) return vector_total[n]/norm; if (norm) return vector_total[n]/norm;
else return 0.0; return 0.0;
} }

View File

@ -304,7 +304,7 @@ double FixIndent::compute_vector(int n)
MPI_Allreduce(indenter,indenter_all,4,MPI_DOUBLE,MPI_SUM,world); MPI_Allreduce(indenter,indenter_all,4,MPI_DOUBLE,MPI_SUM,world);
indenter_flag = 1; indenter_flag = 1;
} }
return indenter_all[n]; return indenter_all[n+1];
} }
/* ---------------------------------------------------------------------- /* ----------------------------------------------------------------------

View File

@ -193,5 +193,5 @@ double FixWallLJ126::compute_vector(int n)
MPI_Allreduce(wall,wall_all,4,MPI_DOUBLE,MPI_SUM,world); MPI_Allreduce(wall,wall_all,4,MPI_DOUBLE,MPI_SUM,world);
wall_flag = 1; wall_flag = 1;
} }
return wall_all[n]; return wall_all[n+1];
} }

View File

@ -191,5 +191,5 @@ double FixWallLJ93::compute_vector(int n)
MPI_Allreduce(wall,wall_all,4,MPI_DOUBLE,MPI_SUM,world); MPI_Allreduce(wall,wall_all,4,MPI_DOUBLE,MPI_SUM,world);
wall_flag = 1; wall_flag = 1;
} }
return wall_all[n]; return wall_all[n+1];
} }