--- trunk/src/perturbations/ElectricField.cpp 2013/07/19 21:25:45 1908 +++ trunk/src/perturbations/ElectricField.cpp 2014/04/17 19:07:31 1987 @@ -144,8 +144,8 @@ namespace OpenMD { } } #ifdef IS_MPI - MPI::COMM_WORLD.Allreduce(MPI::IN_PLACE, &fieldPot, 1, MPI::REALTYPE, - MPI::SUM); + MPI_Allreduce(MPI_IN_PLACE, &fieldPot, 1, MPI_REALTYPE, + MPI_SUM, MPI_COMM_WORLD); #endif Snapshot* snap = info_->getSnapshotManager()->getCurrentSnapshot(); longRangePotential = snap->getLongRangePotentials();