From 0a15bd0c03e686b1487275bb741f94e80722928e Mon Sep 17 00:00:00 2001 From: Roland Haas Date: Sat, 2 Jun 2012 09:33:37 -0700 Subject: CarpetEvolutionMask: use dd.ghost_widths rather than cctk_nghostzones --- Carpet/CarpetEvolutionMask/src/evolution_mask.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Carpet/CarpetEvolutionMask') diff --git a/Carpet/CarpetEvolutionMask/src/evolution_mask.cc b/Carpet/CarpetEvolutionMask/src/evolution_mask.cc index a7cc61edf..f8a20982a 100644 --- a/Carpet/CarpetEvolutionMask/src/evolution_mask.cc +++ b/Carpet/CarpetEvolutionMask/src/evolution_mask.cc @@ -45,6 +45,9 @@ namespace CarpetEvolutionMask { assert (all (reffact == 2)); const i2vect buffer_widths = dd.buffer_widths.at(reflevel); + //const i2vect overlap_widths = dd.overlap_widths.at(reflevel); + // overlap_widths do not need to be taken into account since coincide with the prolongation stencil + const i2vect ghost_widths = dd.ghost_widths.at(reflevel); // cout << "base: " << base << endl; // cout << "coarsebase: " << coarsebase << endl; @@ -87,7 +90,7 @@ namespace CarpetEvolutionMask { i2vect antishrinkby; for (int f=0; f<2;f++) { for (int d=0; dcctk_nghostzones[d] + buffer_widths[f][d]; + antishrinkby[f][d] = ghost_widths[f][d] + buffer_widths[f][d]; } } ibset antishrunk -- cgit v1.2.3