]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid one use of GeometryInfo. 13562/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 22 Mar 2022 20:00:34 +0000 (14:00 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 22 Mar 2022 20:00:34 +0000 (14:00 -0600)
source/particles/generators.cc

index bcb04164dcddb78435b9287a21a8223736114b02..c57beef379de929b5bab7ac9a0b10b91ff8d080b 100644 (file)
@@ -148,7 +148,7 @@ namespace Particles
                 position_unit =
                   mapping.transform_real_to_unit_cell(cell, position);
 
-                if (GeometryInfo<dim>::is_inside_unit_cell(position_unit))
+                if (cell->reference_cell().contains_point(position_unit))
                   return std::make_pair(position, position_unit);
               }
             catch (typename Mapping<dim>::ExcTransformationFailed &)

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.