--- trunk/src/restraints/ThermoIntegrationForceManager.cpp 2013/06/16 15:15:42 1879 +++ trunk/src/restraints/ThermoIntegrationForceManager.cpp 2014/02/26 14:14:50 1969 @@ -40,13 +40,12 @@ * [5] Vardeman, Stocker & Gezelter, J. Chem. Theory Comput. 7, 834 (2011). */ - -#include "restraints/ThermoIntegrationForceManager.hpp" - #ifdef IS_MPI #include #endif +#include "restraints/ThermoIntegrationForceManager.hpp" + namespace OpenMD { ThermoIntegrationForceManager::ThermoIntegrationForceManager(SimInfo* info): @@ -151,10 +150,10 @@ namespace OpenMD { #ifdef IS_MPI RealType restPot; - MPI::COMM_WORLD.Allreduce(&restPot_local, &restPot, 1, - MPI::REALTYPE, MPI::SUM); - MPI::COMM_WORLD.Allreduce(&vHarm_local, &vHarm_, 1, - MPI::REALTYPE, MPI::SUM); + MPI_Allreduce(&restPot_local, &restPot, 1, + MPI_REALTYPE, MPI_SUM, MPI_COMM_WORLD); + MPI_Allreduce(&vHarm_local, &vHarm_, 1, + MPI_REALTYPE, MPI_SUM, MPI_COMM_WORLD); lrPot_ += restPot; #else lrPot_ += restPot_local;