From: Wolfgang Bangerth Date: Tue, 22 Mar 2022 18:22:46 +0000 (-0600) Subject: Add an assertion. X-Git-Tag: v9.4.0-rc1~349^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F13560%2Fhead;p=dealii.git Add an assertion. --- 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);