]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix comparison with negative entries.
authorkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 22 May 2013 05:32:19 +0000 (05:32 +0000)
committerkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 22 May 2013 05:32:19 +0000 (05:32 +0000)
git-svn-id: https://svn.dealii.org/trunk@29544 0785d39b-7218-0410-832d-ea1e28bc413d

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

index b29381dbcb7dbf6dc3bb752947f861ba387346b0..f7b6a7f9d939da933338c9ac13962623d3b6e6fa 100644 (file)
@@ -338,7 +338,7 @@ namespace parallel
                    j++, read_position++)
                 Assert(*read_position == 0. ||
                        std::abs(local_element(j) - *read_position) <
-                       local_element(j) * 100. *
+                       std::abs(local_element(j)) * 100. *
                        std::numeric_limits<Number>::epsilon(),
                        ExcMessage("Inserted elements do not match."));
           AssertDimension(read_position-import_data,part.n_import_indices());

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.