From: Martin Kronbichler Date: Thu, 17 Apr 2014 05:27:24 +0000 (+0000) Subject: Fix comparison when the numbers are denormals X-Git-Tag: v8.2.0-rc1~593 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77a6c51d906b89371dbb11f245113ebc35cbb787;p=dealii.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),