]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Particle sort: Use find_active_cell_around_point with cache
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Wed, 12 May 2021 12:12:16 +0000 (14:12 +0200)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Wed, 12 May 2021 12:12:16 +0000 (14:12 +0200)
source/particles/particle_handler.cc

index a66b824bf68c8f59375c6be1f311437eb4dd0408..48c760bed590af721094f0f3e853c0086304ceec 100644 (file)
@@ -1093,7 +1093,7 @@ namespace Particles
                               Point<dim>>
                 current_cell_and_position =
                   GridTools::find_active_cell_around_point<>(
-                    *mapping, *triangulation, out_particle->get_location());
+                    *triangulation_cache, out_particle->get_location());
               current_cell               = current_cell_and_position.first;
               current_reference_position = current_cell_and_position.second;
 

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.