Skip to content
Snippets Groups Projects
Commit a1331861 authored by Stephan Schulz's avatar Stephan Schulz
Browse files

fix check for cartesian communicator

parent 2f9bd3a8
Branches
Tags
1 merge request!8Refactor
This commit is part of merge request !12. Comments created here will be created in the context of that merge request.
......@@ -200,7 +200,8 @@ public:
/// @param[in] comm the communicator to be used
void setCommunicator(const MPI_Comm comm) {
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;
balancer->setCommunicator(communicator);
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment