aboutsummaryrefslogtreecommitdiff
path: root/Carpet
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@cct.lsu.edu>2010-03-18 15:36:04 -0700
committerBarry Wardell <barry.wardell@gmail.com>2011-12-14 16:45:36 +0000
commit3eabeede0c3a0bf2f8c0ec5d6225ea05ac214bfd (patch)
tree28457f39293a62022bf057fb4191e3d4255c87c4 /Carpet
parent2076f410ba80023def58cb48947c9e4aa75bd806 (diff)
CarpetLib: Add isnan and friends to vect<T,D>
Diffstat (limited to 'Carpet')
-rw-r--r--Carpet/CarpetLib/src/vect.hh10
1 files changed, 10 insertions, 0 deletions
diff --git a/Carpet/CarpetLib/src/vect.hh b/Carpet/CarpetLib/src/vect.hh
index 51cc331cf..d7d648b7a 100644
--- a/Carpet/CarpetLib/src/vect.hh
+++ b/Carpet/CarpetLib/src/vect.hh
@@ -391,6 +391,16 @@ inline vect<T,D> ipow (const vect<T,D>& a, const vect<int,D>& b)
DECLARE_FUNCTION_1 (abs)
DECLARE_FUNCTION_1 (ceil)
DECLARE_FUNCTION_1 (floor)
+DECLARE_FUNCTION_1 (sqrt)
+namespace CarpetLib {
+ namespace good {
+ DECLARE_FUNCTION_1_RET (fpclassify, int)
+ DECLARE_FUNCTION_1_RET (isfinite, int)
+ DECLARE_FUNCTION_1_RET (isinf, int)
+ DECLARE_FUNCTION_1_RET (isnan, int)
+ DECLARE_FUNCTION_1_RET (isnormal, int)
+ }
+}
DECLARE_OPERATOR_1_RET (operator!, !, bool)