diff options
author | Barry Wardell <barry.wardell@gmail.com> | 2012-02-06 20:41:09 +0000 |
---|---|---|
committer | Barry Wardell <barry.wardell@gmail.com> | 2012-09-11 18:23:01 +0100 |
commit | 3c04d16c9a13748ecc198bcae6ce691267e757d5 (patch) | |
tree | 37c3878a631312999f067ba1b24a04580213aacc /Carpet/CarpetLib/src/data.cc | |
parent | 7c7c2f7e4a21b208931dc683ab416399cb3c794a (diff) |
CarpetLib: Improve prolongation with single precision.
* Allow larger errors
* Disable 11th order as single precision isn't good enough for it to be accurate.
Diffstat (limited to 'Carpet/CarpetLib/src/data.cc')
-rw-r--r-- | Carpet/CarpetLib/src/data.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Carpet/CarpetLib/src/data.cc b/Carpet/CarpetLib/src/data.cc index c4f5adfcc..24534b376 100644 --- a/Carpet/CarpetLib/src/data.cc +++ b/Carpet/CarpetLib/src/data.cc @@ -749,6 +749,13 @@ transfer_prolongate (data const * const src, NULL, & prolongate_3d_rf2<T,11>, }; +#if defined(CCTK_REAL_PRECISION_4) + if (order_space == 11) + { + CCTK_WARN (CCTK_WARN_ABORT, + "There is no single precision vertex-centred stencil for op=\"LAGRANGE\" or op=\"COPY\" with order_space=11"); + } +#endif if (order_space < 0 or order_space > 11 or not the_operators[order_space]) { |