ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/trunk/src/parallel/Communicator.hpp
(Generate patch)

Comparing branches/development/src/parallel/Communicator.hpp (file contents):
Revision 1541 by gezelter, Fri Feb 4 20:04:56 2011 UTC vs.
Revision 1544 by gezelter, Fri Mar 18 19:31:52 2011 UTC

# Line 46 | Line 46
46   * [4]  Vardeman & Gezelter, in progress (2009).                        
47   */
48  
49 < #ifndef FORCEDECOMPOSITION_COMMUNICATOR_HPP
50 < #define FORCEDECOMPOSITION_COMMUNICATOR_HPP
49 > #ifndef PARALLEL_COMMUNICATOR_HPP
50 > #define PARALLEL_COMMUNICATOR_HPP
51  
52   #include <config.h>
53   #include <mpi.h>
# Line 113 | Line 113 | namespace OpenMD{
113  
114        myComm.Allgather(&planSize_, 1, MPI::INT, &counts[0], 1, MPI::INT);
115  
116
116        displacements[0] = 0;
117        for (int i = 1; i < nCommProcs; i++) {
118          displacements[i] = displacements[i-1] + counts[i-1];
119 <        size_ += count[i-1];
119 >        size_ += counts[i-1];
120        }
121  
122        size_ = 0;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines