aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib/src/ggf.cc
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@cct.lsu.edu>2007-02-28 02:26:00 +0000
committerErik Schnetter <schnetter@cct.lsu.edu>2007-02-28 02:26:00 +0000
commit21d87ab288784e09205bb4e7047f9d41d3c18edd (patch)
treea0a7fae88bd65a1ab8e3426413ea17d721da5d2d /Carpet/CarpetLib/src/ggf.cc
parentb5a21f4e4df143a4174b52429539c73257d32f94 (diff)
CarpetLib: Change static_assert to have two arguments
Change static_assert to have a second arguments, which is supposed to be a string containing a description of the test. darcs-hash:20070228022658-dae7b-3fb68ea0e0f557f2268cb95546ba0d70c58cda7a.gz
Diffstat (limited to 'Carpet/CarpetLib/src/ggf.cc')
-rw-r--r--Carpet/CarpetLib/src/ggf.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/Carpet/CarpetLib/src/ggf.cc b/Carpet/CarpetLib/src/ggf.cc
index f3d215e44..2a4e3857f 100644
--- a/Carpet/CarpetLib/src/ggf.cc
+++ b/Carpet/CarpetLib/src/ggf.cc
@@ -653,6 +653,7 @@ void ggf::mg_restrict (comm_state& state,
CCTK_REAL time)
{
// Require same times
+ static_assert (abs(0.1) > 0, "Function CarpetLib::abs has wrong signature");
assert (abs(t.get_time(rl,ml) - t.get_time(rl,ml-1))
<= 1.0e-8 * abs(t.get_time(rl,ml)));
const vector<int> tl2s(1,tl);
@@ -670,6 +671,7 @@ void ggf::mg_prolongate (comm_state& state,
CCTK_REAL time)
{
// Require same times
+ static_assert (abs(0.1) > 0, "Function CarpetLib::abs has wrong signature");
assert (abs(t.get_time(rl,ml) - t.get_time(rl,ml+1))
<= 1.0e-8 * abs(t.get_time(rl,ml)));
static Timer timer ("mg_prolongate");
@@ -687,6 +689,7 @@ void ggf::ref_restrict (comm_state& state,
CCTK_REAL time)
{
// Require same times
+ static_assert (abs(0.1) > 0, "Function CarpetLib::abs has wrong signature");
assert (abs(t.get_time(rl,ml) - t.get_time(rl+1,ml))
<= 1.0e-8 * abs(t.get_time(rl,ml)));
if (transport_operator == op_none) return;