From f45f251b6cedcd533a999934e9f81bbc52a7b78a Mon Sep 17 00:00:00 2001 From: Jiaqi Zhang Date: Thu, 1 Jul 2021 14:48:55 +0000 Subject: [PATCH] fix assert for 2d mesh --- source/grid/grid_in.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) + -- 2.39.5