Skip to content
Snippets Groups Projects
Commit 5a0fc135 authored by Oliver Sander's avatar Oliver Sander Committed by sander@PCPOOL.MI.FU-BERLIN.DE
Browse files

raise an exception if NaN is encountered

[[Imported from SVN: r5700]]
parent 59e21bfe
No related branches found
No related tags found
No related merge requests found
#include <config.h> #include <config.h>
#include <fenv.h>
#include <iostream> #include <iostream>
#include <dune/common/fvector.hh> #include <dune/common/fvector.hh>
...@@ -177,6 +178,9 @@ void testRotations() ...@@ -177,6 +178,9 @@ void testRotations()
int main() int main()
{ {
// choke on NaN
feenableexcept(FE_INVALID);
//testRealTuples(); //testRealTuples();
testUnitVectors(); testUnitVectors();
//testRotations(); //testRotations();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment