diff options
author | Christian Reisswig <reisswig@tapir.caltech.edu> | 2011-06-06 15:10:43 -0700 |
---|---|---|
committer | Barry Wardell <barry.wardell@gmail.com> | 2011-12-14 18:26:20 +0000 |
commit | af68e28f01bff4772eac13b4569de02bb11e222b (patch) | |
tree | 47033a3112d8502647642f7bf67942328f9ef2f7 /Carpet/CarpetInterp2 | |
parent | 47635d8f07726cffe69da5741166d23ff6d2297f (diff) |
Erik's patch to fix an issue with interpatch interpolation and cell-centered AMR.
Diffstat (limited to 'Carpet/CarpetInterp2')
-rw-r--r-- | Carpet/CarpetInterp2/src/fasterp.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Carpet/CarpetInterp2/src/fasterp.cc b/Carpet/CarpetInterp2/src/fasterp.cc index 084e3651d..61383fa69 100644 --- a/Carpet/CarpetInterp2/src/fasterp.cc +++ b/Carpet/CarpetInterp2/src/fasterp.cc @@ -598,7 +598,10 @@ namespace CarpetInterp2 { & gsh[0], & lower.AT(m)[0], & upper.AT(m)[0], & delta.AT(m)[0]); assert (not ierr); - delta.AT(m) /= Carpet::maxspacereflevelfact; + //delta.AT(m) /= Carpet::maxspacereflevelfact; + gh const * const hh = Carpet::vhh.AT(m); + ibbox const & baseext = hh->baseextent(Carpet::mglevel, 0); + delta.AT(m) /= baseext.stride(); idelta.AT(m) = 1.0 / delta.AT(m); if (veryverbose) { cout << "GetCoordRange[" << m << "]: lower=" << lower.AT(m) << " upper=" << upper.AT(m) << " delta=" << delta.AT(m) << endl; |