aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Topology.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Topology.c b/src/Topology.c
index 52a547c..048140a 100644
--- a/src/Topology.c
+++ b/src/Topology.c
@@ -151,6 +151,13 @@ static int TraditionalTopology(int dim,
}
}
+ /* if the user specified the number of processors for each dimension
+ check that they sum up to the total number of processors available */
+ if (dim > 0 && retval == 0 && free_dims == 0 && used_procs != total_procs)
+ {
+ CCTK_WARN(0, "Inconsistent PUGH topology");
+ }
+
/* Ok calculate topology if necessary */
if(free_dims && ! retval)
{