From 77a6c51d906b89371dbb11f245113ebc35cbb787 Mon Sep 17 00:00:00 2001 From: Martin Kronbichler Date: Thu, 17 Apr 2014 05:27:24 +0000 Subject: [PATCH] Fix comparison when the numbers are denormals git-svn-id: https://svn.dealii.org/trunk@32784 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/include/deal.II/lac/parallel_vector.templates.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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), -- 2.39.5