From 5a0fc135c8ccfc9aaf8b4db84e5925e214657f55 Mon Sep 17 00:00:00 2001 From: Oliver Sander <sander@igpm.rwth-aachen.de> Date: Tue, 9 Mar 2010 08:10:26 +0000 Subject: [PATCH] raise an exception if NaN is encountered [[Imported from SVN: r5700]] --- test/localgeodesicfefunctiontest.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/localgeodesicfefunctiontest.cc b/test/localgeodesicfefunctiontest.cc index 3956a91e..752caca7 100644 --- a/test/localgeodesicfefunctiontest.cc +++ b/test/localgeodesicfefunctiontest.cc @@ -1,5 +1,6 @@ #include <config.h> +#include <fenv.h> #include <iostream> #include <dune/common/fvector.hh> @@ -177,6 +178,9 @@ void testRotations() int main() { + // choke on NaN + feenableexcept(FE_INVALID); + //testRealTuples(); testUnitVectors(); //testRotations(); -- GitLab