]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix comparison when the numbers are denormals
authorkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 17 Apr 2014 05:27:24 +0000 (05:27 +0000)
committerkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 17 Apr 2014 05:27:24 +0000 (05:27 +0000)
git-svn-id: https://svn.dealii.org/trunk@32784 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/lac/parallel_vector.templates.h

index b053621bc78b955c40b4f03e1679dbf4c62a4d99..8f37885dd2a1c27d84c1fbdce8eef5cb0d2589d3 100644 (file)
@@ -451,7 +451,7 @@ namespace parallel
               for (size_type j=my_imports->first; j<my_imports->second;
                    j++, read_position++)
                 Assert(*read_position == 0. ||
-                       std::abs(local_element(j) - *read_position) <
+                       std::abs(local_element(j) - *read_position) <=
                        std::abs(local_element(j)) * 1000. *
                        std::numeric_limits<Number>::epsilon(),
                        ExcNonMatchingElements(*read_position, local_element(j),

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.