]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Extend test to signaling nan's
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 8 Mar 2006 02:18:31 +0000 (02:18 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 8 Mar 2006 02:18:31 +0000 (02:18 +0000)
git-svn-id: https://svn.dealii.org/trunk@12556 0785d39b-7218-0410-832d-ea1e28bc413d

tests/base/log_nan.cc
tests/base/log_nan/cmp/generic

index e53cb2c465b92cbf786a9a4afcb301b6a75097c6..8c8119c146548d528e12c42ef53f620cf18e3612 100644 (file)
@@ -27,8 +27,8 @@ int main ()
   deallog.depth_console(0);
   deallog.threshold_double(1.e-10);
 
-  double rn = std::numeric_limits<double>::quiet_NaN();
-  deallog << rn << std::endl;
+  deallog << std::numeric_limits<double>::quiet_NaN() << std::endl;
+  deallog << std::numeric_limits<double>::signaling_NaN() << std::endl;
 
   return 0;
 }
index 4c160f6e6ec43e0fde7ef0a33ac45daf730799fa..d9a1c7bc2f6bb740bcc414573967632499b9fa86 100644 (file)
@@ -1,2 +1,3 @@
 
 DEAL::nan
+DEAL::nan

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.