From: Jiaqi Zhang Date: Thu, 1 Jul 2021 14:48:55 +0000 (+0000) Subject: fix assert for 2d mesh X-Git-Tag: v9.4.0-rc1~1171^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f45f251b6cedcd533a999934e9f81bbc52a7b78a;p=dealii.git fix assert for 2d mesh --- diff --git a/source/grid/grid_in.cc b/source/grid/grid_in.cc index a49a6af20f..71268f7b1e 100644 --- a/source/grid/grid_in.cc +++ b/source/grid/grid_in.cc @@ -2173,7 +2173,7 @@ GridIn::read_msh(const std::string &fname) # ifdef DEBUG // Make sure the embedded dimension is right for (unsigned int d = spacedim; d < 3; ++d) - Assert(coord[i * 3 + d] == 0, + Assert(std::abs(coord[i * 3 + d]) < 1e-10, ExcMessage("The grid you are reading contains nodes that are " "nonzero in the coordinate with index " + std::to_string(d) +