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> |
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; |