From: Luca Heltai Date: Thu, 11 Jun 2020 07:52:58 +0000 (+0200) Subject: Use internal cache. X-Git-Tag: v9.3.0-rc1~1390^2~6 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ddf21196241b9b2cca4feb21f54b91fe9bac7627;p=dealii.git Use internal cache. --- diff --git a/source/particles/particle_handler.cc b/source/particles/particle_handler.cc index 663929a1c3..67e0e079fd 100644 --- a/source/particles/particle_handler.cc +++ b/source/particles/particle_handler.cc @@ -451,8 +451,8 @@ namespace Particles local_start_index += local_next_particle_index; - GridTools::Cache 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);