From daed119074e225495e6fcd4f0fee472da25c8fa7 Mon Sep 17 00:00:00 2001 From: sjplimp Date: Wed, 29 Jun 2011 14:53:18 +0000 Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@6478 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- src/KSPACE/pppm.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/KSPACE/pppm.cpp b/src/KSPACE/pppm.cpp index 2f530370ed..ea911e25c4 100644 --- a/src/KSPACE/pppm.cpp +++ b/src/KSPACE/pppm.cpp @@ -1481,12 +1481,10 @@ void PPPM::particle_map() if (nx+nlower < nxlo_out || nx+nupper > nxhi_out || ny+nlower < nylo_out || ny+nupper > nyhi_out || - nz+nlower < nzlo_out || nz+nupper > nzhi_out) flag++; + nz+nlower < nzlo_out || nz+nupper > nzhi_out) flag = 1; } - int flag_all; - MPI_Allreduce(&flag,&flag_all,1,MPI_INT,MPI_SUM,world); - if (flag_all) error->all("Out of range atoms - cannot compute PPPM"); + if (flag) error->one("Out of range atoms - cannot compute PPPM"); } /* ----------------------------------------------------------------------