aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib/src
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@cct.lsu.edu>2007-07-03 10:00:00 +0000
committerErik Schnetter <schnetter@cct.lsu.edu>2007-07-03 10:00:00 +0000
commit3f093c146dc1a48276716e0358370536ca491822 (patch)
tree611581d60c53bc6565c7bec315879937a9b53db5 /Carpet/CarpetLib/src
parent286c826b4da98cf322bd6332b06f9ee24ad6c91e (diff)
CarpetLib: Improve error message when a non-existing stencil is selected
darcs-hash:20070703100059-dae7b-144bb38c56bea2402ff2708d863148b0ca8cadcb.gz
Diffstat (limited to 'Carpet/CarpetLib/src')
-rw-r--r--Carpet/CarpetLib/src/data.cc21
1 files changed, 15 insertions, 6 deletions
diff --git a/Carpet/CarpetLib/src/data.cc b/Carpet/CarpetLib/src/data.cc
index 17dc2d277..300ddc0bb 100644
--- a/Carpet/CarpetLib/src/data.cc
+++ b/Carpet/CarpetLib/src/data.cc
@@ -529,7 +529,9 @@ transfer_prolongate (data const * const src,
box);
break;
default:
- assert (0);
+ CCTK_WARN (CCTK_WARN_ABORT,
+ "There is no stencil for op=\"LAGRANGE\" with order_space not in {1, 3, 5}");
+ break;
}
timer.stop (0);
break;
@@ -540,7 +542,8 @@ transfer_prolongate (data const * const src,
timer.start ();
switch (order_space) {
case 1:
- CCTK_WARN (0, "There is no stencil for op=\"ENO\" with order_space=1");
+ CCTK_WARN (CCTK_WARN_ABORT,
+ "There is no stencil for op=\"ENO\" with order_space==1");
break;
case 3:
prolongate_3d_eno (static_cast <T const *> (src->storage()),
@@ -552,7 +555,9 @@ transfer_prolongate (data const * const src,
box);
break;
default:
- assert (0);
+ CCTK_WARN (CCTK_WARN_ABORT,
+ "There is no stencil for op=\"ENO\" with order_space!=3");
+ break;
}
timer.stop (0);
break;
@@ -563,10 +568,12 @@ transfer_prolongate (data const * const src,
timer.start ();
switch (order_space) {
case 1:
- CCTK_WARN (0, "There is no stencil for op=\"WENO\" with order_space=1");
+ CCTK_WARN (CCTK_WARN_ABORT,
+ "There is no stencil for op=\"WENO\" with order_space=1");
break;
case 3:
- CCTK_WARN (0, "There is no stencil for op=\"WENO\" with order_space=3");
+ CCTK_WARN (CCTK_WARN_ABORT,
+ "There is no stencil for op=\"WENO\" with order_space=3");
break;
case 5:
prolongate_3d_eno (static_cast <T const *> (src->storage()),
@@ -578,7 +585,9 @@ transfer_prolongate (data const * const src,
box);
break;
default:
- assert (0);
+ CCTK_WARN (CCTK_WARN_ABORT,
+ "There is no stencil for op=\"WENO\" with order_space!=5");
+ break;
}
timer.stop (0);
break;