From: kronbichler Date: Thu, 17 Apr 2014 05:27:24 +0000 (+0000) Subject: Fix comparison when the numbers are denormals X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ccf9a9142481b531a3fe845d8ee238bc96c7858d;p=dealii-svn.git Fix comparison when the numbers are denormals git-svn-id: https://svn.dealii.org/trunk@32784 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/include/deal.II/lac/parallel_vector.templates.h b/deal.II/include/deal.II/lac/parallel_vector.templates.h index b053621bc7..8f37885dd2 100644 --- a/deal.II/include/deal.II/lac/parallel_vector.templates.h +++ b/deal.II/include/deal.II/lac/parallel_vector.templates.h @@ -451,7 +451,7 @@ namespace parallel for (size_type j=my_imports->first; jsecond; 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::epsilon(), ExcNonMatchingElements(*read_position, local_element(j),