From c4bd415577e3a99a6e66fe59116af3c2e6de4b60 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 22 Mar 2022 14:00:34 -0600 Subject: [PATCH] Avoid one use of GeometryInfo. --- source/particles/generators.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 &) -- 2.39.5