From: Wolfgang Bangerth Date: Tue, 22 Mar 2022 20:00:34 +0000 (-0600) Subject: Avoid one use of GeometryInfo. X-Git-Tag: v9.4.0-rc1~350^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c4bd415577e3a99a6e66fe59116af3c2e6de4b60;p=dealii.git Avoid one use of GeometryInfo. --- diff --git a/source/particles/generators.cc b/source/particles/generators.cc index bcb04164dc..c57beef379 100644 --- a/source/particles/generators.cc +++ b/source/particles/generators.cc @@ -148,7 +148,7 @@ namespace Particles position_unit = mapping.transform_real_to_unit_cell(cell, position); - if (GeometryInfo::is_inside_unit_cell(position_unit)) + if (cell->reference_cell().contains_point(position_unit)) return std::make_pair(position, position_unit); } catch (typename Mapping::ExcTransformationFailed &)