]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Bug fix: As min=2.22507e-308 and max=1.79769e+308 we should allow -max<=x<=max instea...
authorhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 10 Oct 2006 11:09:16 +0000 (11:09 +0000)
committerhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 10 Oct 2006 11:09:16 +0000 (11:09 +0000)
git-svn-id: https://svn.dealii.org/trunk@13988 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/source/config.cc

index 4d8ec7b70e970803f7addbb416fddb7c9e54cb26..cfce328699458d840ad754f6fb783ed6f85af99a 100644 (file)
@@ -27,7 +27,7 @@ namespace deal_II_numbers
                                     // check against infinities. not
                                     // that if x is a NaN, then both
                                     // comparisons will be false
-    return ((x >= std::numeric_limits<double>::min())
+    return ((x >= -std::numeric_limits<double>::max())
            &&
            (x <= std::numeric_limits<double>::max()));
 #endif

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.