Skip to content
Snippets Groups Projects

Feature/amalgamated

Closed Stephan Schulz requested to merge feature/amalgamated into refactor
1 file
+ 9
0
Compare changes
  • Side-by-side
  • Inline
+ 9
0
@@ -204,6 +204,15 @@ public:
if ( comm_type == MPI_CART) {
communicator = comm;
balancer->setCommunicator(communicator);
// set procGridLoc and procGridDim
const int dimension = balancer->getDimension();
int location[dimension];
int size[dimension];
int periodicity[dimension];
MPI_Cart_get(communicator, dimension, size, periodicity, location);
procGridLoc.assign(location, location+dimension);
procGridDim.assign(size, size+dimension);
procGridSet = true;
} else {
int rank;
MPI_Comm_rank(comm, &rank);
Loading