ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/trunk/src/restraints/ThermoIntegrationForceManager.cpp
(Generate patch)

Comparing trunk/src/restraints/ThermoIntegrationForceManager.cpp (file contents):
Revision 1938 by gezelter, Thu Oct 31 15:32:17 2013 UTC vs.
Revision 1969 by gezelter, Wed Feb 26 14:14:50 2014 UTC

# Line 150 | Line 150 | namespace OpenMD {
150        
151   #ifdef IS_MPI
152      RealType restPot;
153 <    MPI::COMM_WORLD.Allreduce(&restPot_local, &restPot, 1,
154 <                              MPI::REALTYPE, MPI::SUM);
155 <    MPI::COMM_WORLD.Allreduce(&vHarm_local, &vHarm_, 1,
156 <                              MPI::REALTYPE, MPI::SUM);        
153 >    MPI_Allreduce(&restPot_local, &restPot, 1,
154 >                  MPI_REALTYPE, MPI_SUM, MPI_COMM_WORLD);
155 >    MPI_Allreduce(&vHarm_local, &vHarm_, 1,
156 >                  MPI_REALTYPE, MPI_SUM, MPI_COMM_WORLD);        
157      lrPot_ += restPot;
158   #else
159      lrPot_ += restPot_local;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines