diff options
author | Roland Haas <roland.haas@physics.gatech.edu> | 2012-06-02 09:34:57 -0700 |
---|---|---|
committer | Roland Haas <roland.haas@physics.gatech.edu> | 2012-06-02 09:34:57 -0700 |
commit | bc240c9058b52394a0a43156429cf45cd9b01ab8 (patch) | |
tree | 53ac4fe2f367dd22c05686fa950e993453aa3174 | |
parent | 8f64104cc4e0b5495fffca7c22889b26ccb54067 (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.
-rw-r--r-- | Carpet/CarpetEvolutionMask/param.ccl | 6 | ||||
-rw-r--r-- | Carpet/CarpetEvolutionMask/src/evolution_mask.cc | 3 |
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 |