aboutsummaryrefslogtreecommitdiff
path: root/src/SetupPGH.c
diff options
context:
space:
mode:
authorschnetter <schnetter@b61c5cb5-eaca-4651-9a7a-d64986f99364>2005-09-26 03:06:25 +0000
committerschnetter <schnetter@b61c5cb5-eaca-4651-9a7a-d64986f99364>2005-09-26 03:06:25 +0000
commit381b759f8afba04cf673cb0540c142f117b84913 (patch)
tree85739e0298e574a110af421f69c4a53d9529a98b /src/SetupPGH.c
parent710e1e23cfecc96153ac103f13e04ceec625dd44 (diff)
Apply Frank Loeffler's patch to improve the processor distribution of
PUGH: Up to now, PUGH does not take the actual grid size into account while setting the number of processors/domains in each direction. This gives problems, e.g. using boxes like 200x7x7 (with 3 ghostzones). It also does not really do a good job in situations with non near-cubic domains (like in bitant mode it devides first in the z-direction, which is usually the smallest). I inserted another decomposition algorithm which is looking for the longest direction and devides this if possible. Because it was done to be easy to understand, it can fail in certain situations, in which it is gracefully falling back to the old decomposition (e.g. a cubic box and 9 processors). To include this algorithm I added a keyword "automatic_old" to PUGH::processor_topology. The new behaviour is the default; this keyword re-enables the old behaviour. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@471 b61c5cb5-eaca-4651-9a7a-d64986f99364
Diffstat (limited to 'src/SetupPGH.c')
-rw-r--r--src/SetupPGH.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/SetupPGH.c b/src/SetupPGH.c
index 8b56808..ab71fb4 100644
--- a/src/SetupPGH.c
+++ b/src/SetupPGH.c
@@ -144,6 +144,7 @@ pGH *PUGH_SetupPGH (void *callerid,
}
pughGH->Connectivity[idim-1] = PUGH_SetupConnectivity (idim, pughGH->nprocs,
+ nsize, nghostzones,
nprocs, perme);
free(nprocs);