diff options
author | Roland Haas <roland.haas@physics.gatech.edu> | 2012-06-02 09:33:37 -0700 |
---|---|---|
committer | Barry Wardell <barry.wardell@gmail.com> | 2012-09-11 18:23:25 +0100 |
commit | 0a15bd0c03e686b1487275bb741f94e80722928e (patch) | |
tree | d5cfaffcd3452efdc59109f552514c888e6f7188 /Carpet/CarpetEvolutionMask | |
parent | 5ac5c3be5d3936d4e29d3f38146dece4caf77212 (diff) |
CarpetEvolutionMask: use dd.ghost_widths rather than cctk_nghostzones
Diffstat (limited to 'Carpet/CarpetEvolutionMask')
-rw-r--r-- | Carpet/CarpetEvolutionMask/src/evolution_mask.cc | 5 |
1 files changed, 4 insertions, 1 deletions
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; d<dim;d++) { - antishrinkby[f][d] = cctkGH->cctk_nghostzones[d] + buffer_widths[f][d]; + antishrinkby[f][d] = ghost_widths[f][d] + buffer_widths[f][d]; } } ibset antishrunk |