ASPECT
distance_weighted_average.h
Go to the documentation of this file.
1 // ------------------------------------------------------
2 //
3 // SPDX-License-Identifier: GPL-2.0-or-later
4 //
5 // SPDX-FileCopyrightText: Copyright (C) 2024 by the ASPECT authors.
6 //
7 // This file is part of ASPECT.
8 //
9 // Detailed license information governing the source code and
10 // contributions can be found in the folder LICENSES and in
11 // LICENSE and CONTRIBUTING.md at the top level directory.
12 //
13 // ------------------------------------------------------
14 
15 #ifndef _aspect_particle_interpolator_distance_weighted_average_h
16 #define _aspect_particle_interpolator_distance_weighted_average_h
17 
20 
22 
23 namespace aspect
24 {
25  namespace Particle
26  {
27  namespace Interpolator
28  {
35  template <int dim>
37  {
38  public:
42  void initialize() override;
43 
47  std::vector<std::vector<double>>
48  properties_at_points(const ParticleHandler<dim> &particle_handler,
49  const std::vector<Point<dim>> &positions,
50  const ComponentMask &selected_properties,
51  const typename parallel::distributed::Triangulation<dim>::active_cell_iterator &cell) const override;
52 
53  private:
58  std::unique_ptr<GridTools::Cache<dim>> grid_cache;
59  };
60  }
61  }
62 }
63 
64 #endif
typename ::Triangulation< dim, spacedim >::active_cell_iterator active_cell_iterator
std::unique_ptr< GridTools::Cache< dim > > grid_cache
std::vector< std::vector< double > > properties_at_points(const ParticleHandler< dim > &particle_handler, const std::vector< Point< dim >> &positions, const ComponentMask &selected_properties, const typename parallel::distributed::Triangulation< dim >::active_cell_iterator &cell) const override