aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetEvolutionMask
diff options
context:
space:
mode:
authorRoland Haas <roland.haas@physics.gatech.edu>2012-06-02 09:34:57 -0700
committerBarry Wardell <barry.wardell@gmail.com>2012-09-11 18:23:26 +0100
commiteb8d874e84846c2b15887a27cec1931c0f79f158 (patch)
treeca26872b0e156b3379df54fb59a734844e4617ef /Carpet/CarpetEvolutionMask
parent0a15bd0c03e686b1487275bb741f94e80722928e (diff)
CarpetEvolutionMask: add parameter enlarge_evolved_region to fine tune
excluded region positive values enlarge the *evolved* region, negative values (up to buffer_with + ghost_width) shrink it. That is positive values shrink the hole in the center of patches.
Diffstat (limited to 'Carpet/CarpetEvolutionMask')
-rw-r--r--Carpet/CarpetEvolutionMask/param.ccl6
-rw-r--r--Carpet/CarpetEvolutionMask/src/evolution_mask.cc3
2 files changed, 8 insertions, 1 deletions
diff --git a/Carpet/CarpetEvolutionMask/param.ccl b/Carpet/CarpetEvolutionMask/param.ccl
index 5f79f615a..7f890e10a 100644
--- a/Carpet/CarpetEvolutionMask/param.ccl
+++ b/Carpet/CarpetEvolutionMask/param.ccl
@@ -20,3 +20,9 @@ STRING enforce_vars "Enforce mask in MoL automatically on the following variable
{
"" :: "a list of variables or groups"
} ""
+
+INT enlarge_evolved_region_by "enlarge or shrink evolved region" STEERABLE=always
+{
+ 0:* :: "positive values enlarge the evolved region"
+ *:0) :: "negative values shrink the evolved region. Up to buffer_width + nghostzones points can be removed"
+} 0
diff --git a/Carpet/CarpetEvolutionMask/src/evolution_mask.cc b/Carpet/CarpetEvolutionMask/src/evolution_mask.cc
index f8a20982a..2966d2e54 100644
--- a/Carpet/CarpetEvolutionMask/src/evolution_mask.cc
+++ b/Carpet/CarpetEvolutionMask/src/evolution_mask.cc
@@ -90,7 +90,8 @@ namespace CarpetEvolutionMask {
i2vect antishrinkby;
for (int f=0; f<2;f++) {
for (int d=0; d<dim;d++) {
- antishrinkby[f][d] = ghost_widths[f][d] + buffer_widths[f][d];
+ antishrinkby[f][d] = ghost_widths[f][d] + buffer_widths[f][d] +
+ enlarge_evolved_region_by;
}
}
ibset antishrunk