]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add an assertion. 13560/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 22 Mar 2022 18:22:46 +0000 (12:22 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 22 Mar 2022 18:22:46 +0000 (12:22 -0600)
source/particles/generators.cc

index bcb04164dcddb78435b9287a21a8223736114b02..f4604217ce562fdd2c0c9e563ad6b900e8a70b55 100644 (file)
@@ -121,6 +121,9 @@ namespace Particles
         const Mapping<dim, spacedim> &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<double> uniform_distribution_01(0, 1);

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.