diff options
author | tradke <tradke@b61c5cb5-eaca-4651-9a7a-d64986f99364> | 2006-07-31 10:20:03 +0000 |
---|---|---|
committer | tradke <tradke@b61c5cb5-eaca-4651-9a7a-d64986f99364> | 2006-07-31 10:20:03 +0000 |
commit | 76b3a2e2a78ca40cd12a97ff989bd61cdcf25ad3 (patch) | |
tree | 7102ee938241296a3bd4f8f0fcaf17e9d8421d48 | |
parent | 2ac401c9db2b4b665751b2818c59573d2cbb4178 (diff) |
If the user specified the number of processors for each dimension
check that they sum up to the total number of processors available.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@484 b61c5cb5-eaca-4651-9a7a-d64986f99364
-rw-r--r-- | src/Topology.c | 7 |
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) { |