From: kronbichler Date: Wed, 22 May 2013 05:32:19 +0000 (+0000) Subject: Fix comparison with negative entries. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=65880dac599554af0a85760ab88840d60b59a4d9;p=dealii-svn.git Fix comparison with negative entries. git-svn-id: https://svn.dealii.org/trunk@29544 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 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());