aboutsummaryrefslogtreecommitdiff
path: root/Carpet/Carpet/src/Recompose.cc
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@cct.lsu.edu>2009-11-10 14:31:35 -0600
committerErik Schnetter <schnetter@cct.lsu.edu>2009-11-10 14:31:35 -0600
commit42dffad4c0881e801016fd4d90c96055bca0700a (patch)
tree389a902435ba6ea0440b68fe5bd5ecbbc7cba097 /Carpet/Carpet/src/Recompose.cc
parentd376cd1c17d6d7aa92fc08363f1f3cc372aa5476 (diff)
Carpet: Add parameter no_split_direction
Add new parameter no_split_direction that ensures that a domain is not split (distributed onto several processes) in a certain direction.
Diffstat (limited to 'Carpet/Carpet/src/Recompose.cc')
-rw-r--r--Carpet/Carpet/src/Recompose.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/Carpet/Carpet/src/Recompose.cc b/Carpet/Carpet/src/Recompose.cc
index f1f0b8834..65485d61d 100644
--- a/Carpet/Carpet/src/Recompose.cc
+++ b/Carpet/Carpet/src/Recompose.cc
@@ -1399,7 +1399,8 @@ namespace Carpet {
// Choose a number of slices for this direction
CCTK_REAL const mycost1 =
mycost * pow(nprocs / totalcost, CCTK_REAL(1) / alldims);
- int const nslices = min (nprocs, int (floor (mycost1 + CCTK_REAL(0.5))));
+ int const nslices1 = min (nprocs, int (floor (mycost1 + CCTK_REAL(0.5))));
+ int const nslices = mydim==no_split_direction ? 1 : nslices1;
assert (nslices <= nprocs);
if (recompose_verbose) cout << "SRMAR " << mydim << " nprocs " << nprocs << endl;
if (recompose_verbose) cout << "SRMAR " << mydim << " nslices " << nslices << endl;