From d4991f42eceeeece984f13018281a24ab7bd1e8d Mon Sep 17 00:00:00 2001 From: sjplimp Date: Wed, 29 Apr 2009 17:19:57 +0000 Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@2782 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- src/compute_temp_profile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compute_temp_profile.cpp b/src/compute_temp_profile.cpp index 8733fe6b29..20a0f298ee 100644 --- a/src/compute_temp_profile.cpp +++ b/src/compute_temp_profile.cpp @@ -395,7 +395,7 @@ void ComputeTempProfile::bin_average() // sum bins across processors - MPI_Allreduce(vbin[0],binave[0],nbins*ncount,MPI_DOUBLE,MPI_SUM,world); + MPI_Allreduce(vbin[0],binave[0],nbins*(ncount+1),MPI_DOUBLE,MPI_SUM,world); // compute ave velocity in each bin, checking for no particles