From f29efdeaf0c6deb786d80a1af1ecf0c080b4cffc Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 22 Mar 2022 12:22:46 -0600 Subject: [PATCH] Add an assertion. --- source/particles/generators.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/particles/generators.cc b/source/particles/generators.cc index bcb04164dc..f4604217ce 100644 --- a/source/particles/generators.cc +++ b/source/particles/generators.cc @@ -121,6 +121,9 @@ namespace Particles const Mapping &mapping, std::mt19937 & random_number_generator) { + Assert(cell->reference_cell().is_hyper_cube() == true, + ExcNotImplemented()); + // Uniform distribution on the interval [0,1]. This // will be used to generate random particle locations. std::uniform_real_distribution uniform_distribution_01(0, 1); -- 2.39.5