]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use internal cache.
authorLuca Heltai <luca.heltai@sissa.it>
Thu, 11 Jun 2020 07:52:58 +0000 (09:52 +0200)
committerLuca Heltai <luca.heltai@sissa.it>
Thu, 11 Jun 2020 07:52:58 +0000 (09:52 +0200)
source/particles/particle_handler.cc

index 663929a1c3a6fe8156aa1cea34f66f75e9bc6b6e..67e0e079fd7d8355cec9b971786e003220546c12 100644 (file)
@@ -451,8 +451,8 @@ namespace Particles
 
     local_start_index += local_next_particle_index;
 
-    GridTools::Cache<dim, spacedim> cache(*triangulation, *mapping);
-    auto point_locations = GridTools::compute_point_locations(cache, positions);
+    auto point_locations =
+      GridTools::compute_point_locations(*triangulation_cache, positions);
 
     auto &cells           = std::get<0>(point_locations);
     auto &local_positions = std::get<1>(point_locations);
@@ -531,7 +531,7 @@ namespace Particles
 
     // Get all local information
     const auto cells_positions_and_index_maps =
-      GridTools::distributed_compute_point_locations(cache,
+      GridTools::distributed_compute_point_locations(*triangulation_cache,
                                                      positions,
                                                      global_bounding_boxes);
 

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.