Skip to content
Snippets Groups Projects

Feature/amalgamated

1 file
+ 2
1
Compare changes
  • Side-by-side
  • Inline
+ 2
1
@@ -200,7 +200,8 @@ public:
@@ -200,7 +200,8 @@ public:
/// @param[in] comm the communicator to be used
/// @param[in] comm the communicator to be used
void setCommunicator(const MPI_Comm comm) {
void setCommunicator(const MPI_Comm comm) {
int comm_type;
int comm_type;
if (MPI_Topo_test(comm, &comm_type) == MPI_CART) {
MPI_Topo_test(comm, &comm_type);
 
if ( comm_type == MPI_CART) {
communicator = comm;
communicator = comm;
balancer->setCommunicator(communicator);
balancer->setCommunicator(communicator);
} else {
} else {
Loading