From 65880dac599554af0a85760ab88840d60b59a4d9 Mon Sep 17 00:00:00 2001 From: kronbichler Date: Wed, 22 May 2013 05:32:19 +0000 Subject: [PATCH] Fix comparison with negative entries. git-svn-id: https://svn.dealii.org/trunk@29544 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 b29381dbcb..f7b6a7f9d9 100644 --- a/deal.II/include/deal.II/lac/parallel_vector.templates.h +++ b/deal.II/include/deal.II/lac/parallel_vector.templates.h @@ -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::epsilon(), ExcMessage("Inserted elements do not match.")); AssertDimension(read_position-import_data,part.n_import_indices()); -- 2.39.5