From b0c513753be019934554b6dc3ff2e5d4de3a3f00 Mon Sep 17 00:00:00 2001 From: tradke Date: Thu, 3 Aug 2006 11:41:58 +0000 Subject: Check that the user-specified the number of processors sums up to the total number of processors available only for topology dimensions > 1. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@485 b61c5cb5-eaca-4651-9a7a-d64986f99364 --- src/Topology.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Topology.c b/src/Topology.c index 048140a..e9b5592 100644 --- a/src/Topology.c +++ b/src/Topology.c @@ -153,7 +153,7 @@ 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) + if (dim > 1 && retval == 0 && free_dims == 0 && used_procs != total_procs) { CCTK_WARN(0, "Inconsistent PUGH topology"); } -- cgit v1.2.3