diff options
author | Erik Schnetter <schnetter@cct.lsu.edu> | 2009-11-10 15:52:27 -0600 |
---|---|---|
committer | Barry Wardell <barry.wardell@gmail.com> | 2011-12-14 16:45:17 +0000 |
commit | 6126da502c7c9db37b977bae01dcba3046f3e71a (patch) | |
tree | 865d36bbd1a252cea88a0ba6d8888d0f29873f64 /Carpet/CarpetLib/src/gdata.cc | |
parent | 340dfb7369fdb2e48c7d9cd2214331458f959f53 (diff) |
CarpetLib: Use at least first order interpolation for cell centring
When using cell centring, use first order interpolation (instead of
zeroth order interpolation), even when prolongation="copy" is
specified.
Diffstat (limited to 'Carpet/CarpetLib/src/gdata.cc')
-rw-r--r-- | Carpet/CarpetLib/src/gdata.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Carpet/CarpetLib/src/gdata.cc b/Carpet/CarpetLib/src/gdata.cc index 4fa5e889f..8a539169a 100644 --- a/Carpet/CarpetLib/src/gdata.cc +++ b/Carpet/CarpetLib/src/gdata.cc @@ -100,11 +100,13 @@ copy_from (comm_state & state, vector <gdata const *> const srcs (1, src); CCTK_REAL const time = 0.0; vector <CCTK_REAL> const times (1, time); + int const order_space = cent == vertex_centered ? 1 : 0; + int const order_time = 0; transfer_from (state, srcs, times, box, box, dstproc, srcproc, - time, 0, 0); + time, order_space, order_time); } |