aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetEvolutionMask
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@aei.mpg.de>2005-08-12 14:33:00 +0000
committerErik Schnetter <schnetter@aei.mpg.de>2005-08-12 14:33:00 +0000
commit8493c61f465169c3d52b53b5023680a0d33f898c (patch)
treefa3a8e47857e06279effb6129e56ff454fcf97cc /Carpet/CarpetEvolutionMask
parent15702703536ece6bc3db68bd7fcd2dee5e29c4ce (diff)
CarpetEvolutionMask: Handle outer buffer zones
Do not shrink the domain if the buffer zones are outer. darcs-hash:20050812143317-891bb-5e95257cd7a5685fbcc02985e5802e3f1e070a78.gz
Diffstat (limited to 'Carpet/CarpetEvolutionMask')
-rw-r--r--Carpet/CarpetEvolutionMask/src/evolution_mask.cc15
1 files changed, 11 insertions, 4 deletions
diff --git a/Carpet/CarpetEvolutionMask/src/evolution_mask.cc b/Carpet/CarpetEvolutionMask/src/evolution_mask.cc
index 058fd6277..fb93eaafa 100644
--- a/Carpet/CarpetEvolutionMask/src/evolution_mask.cc
+++ b/Carpet/CarpetEvolutionMask/src/evolution_mask.cc
@@ -25,9 +25,16 @@ namespace CarpetEvolutionMask {
// ask the flesh what the value of carpet::buffer_width is...
// this should be fixed at some point...
- CCTK_INT buffer_width = *(CCTK_INT*) CCTK_ParameterGet
- ("buffer_width","Carpet",0);
-
+ CCTK_INT use_outer_buffer_zones = *(CCTK_INT*) CCTK_ParameterGet
+ ("use_outer_buffer_zones","Carpet",0);
+
+ CCTK_INT buffer_width;
+ if (use_outer_buffer_zones) {
+ buffer_width = 0;
+ } else {
+ buffer_width = *(CCTK_INT*) CCTK_ParameterGet
+ ("buffer_width","Carpet",0);
+ }
// cout << "buffer width: " << buffer_width << endl;
if (! is_singlemap_mode()) {
@@ -55,7 +62,7 @@ namespace CarpetEvolutionMask {
// Calculate the union of all refined regions
ibset refined;
for (int c=0; c<hh.components(reflevel); ++c) {
- ibbox refcomp = hh.extents().at(mglevel).at(reflevel).at(c);;
+ ibbox refcomp = hh.extents().at(mglevel).at(reflevel).at(c);
bbvect outer_boundary = hh.outer_boundary(reflevel,c);
ivect expand_right, expand_left;
for (int d=0;d<dim;d++) {