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

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

# Line 12 | Line 12 | namespace QuantLib {
12   #ifdef IS_MPI
13      // in parallel, we need to add up the contributions from all
14      // processors:
15 <    MPI::COMM_WORLD.Allreduce(MPI::IN_PLACE, &dp, 1, MPI::REALTYPE,
16 <                              MPI::SUM);
15 >    MPI_Allreduce(MPI_IN_PLACE, &dp, 1, MPI_REALTYPE,
16 >                  MPI_SUM, MPI_COMM_WORLD);
17   #endif
18      return dp;    
19    }
# Line 24 | Line 24 | namespace QuantLib {
24   #ifdef IS_MPI
25      // in parallel, we need to add up the contributions from all
26      // processors:
27 <    MPI::COMM_WORLD.Allreduce(MPI::IN_PLACE, &dot, 1, MPI::REALTYPE,
28 <                              MPI::SUM);
27 >    MPI_Allreduce(MPI_IN_PLACE, &dot, 1, MPI_REALTYPE,
28 >                  MPI_SUM, MPI_COMM_WORLD);
29   #endif
30      return dot;
31  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines