Reference documentation for deal.II version Git 53084d8c6a 2020-10-21 00:34:33 -0400
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
mapping_q_cache.h
Go to the documentation of this file.
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2019 - 2020 by the deal.II authors
4 //
5 // This file is part of the deal.II library.
6 //
7 // The deal.II library is free software; you can use it, redistribute
8 // it, and/or modify it under the terms of the GNU Lesser General
9 // Public License as published by the Free Software Foundation; either
10 // version 2.1 of the License, or (at your option) any later version.
11 // The full text of the license can be found in the file LICENSE.md at
12 // the top level directory of deal.II.
13 //
14 // ---------------------------------------------------------------------
15 
16 #ifndef dealii_mapping_q_cache_h
17 #define dealii_mapping_q_cache_h
18 
19 
20 #include <deal.II/base/config.h>
21 
23 
24 #include <deal.II/grid/tria.h>
25 
26 
28 
29 
30 
33 
34 
43 template <int dim, int spacedim = dim>
44 class MappingQCache : public MappingQGeneric<dim, spacedim>
45 {
46 public:
52  explicit MappingQCache(const unsigned int polynomial_degree);
53 
57  explicit MappingQCache(const MappingQCache<dim, spacedim> &mapping);
58 
63 
67  virtual std::unique_ptr<Mapping<dim, spacedim>>
68  clone() const override;
69 
74  virtual bool
75  preserves_vertex_locations() const override;
76 
83  void
85  const MappingQGeneric<dim, spacedim> &mapping);
86 
108  void
109  initialize(const Triangulation<dim, spacedim> &triangulation,
110  const std::function<std::vector<Point<spacedim>>(
112  &compute_points_on_cell);
113 
117  std::size_t
118  memory_consumption() const;
119 
120 protected:
124  virtual std::vector<Point<spacedim>>
126  const typename Triangulation<dim, spacedim>::cell_iterator &cell)
127  const override;
128 
129 private:
135  std::shared_ptr<std::vector<std::vector<std::vector<Point<spacedim>>>>>
137 
142  boost::signals2::connection clear_signal;
143 };
144 
148 
149 #endif
virtual bool preserves_vertex_locations() const override
const unsigned int polynomial_degree
std::size_t memory_consumption() const
virtual std::unique_ptr< Mapping< dim, spacedim > > clone() const override
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:369
void initialize(const Triangulation< dim, spacedim > &triangulation, const MappingQGeneric< dim, spacedim > &mapping)
boost::signals2::connection clear_signal
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:368
MappingQCache(const unsigned int polynomial_degree)
virtual std::vector< Point< spacedim > > compute_mapping_support_points(const typename Triangulation< dim, spacedim >::cell_iterator &cell) const override
const ::parallel::distributed::Triangulation< dim, spacedim > * triangulation
std::shared_ptr< std::vector< std::vector< std::vector< Point< spacedim > > > > > support_point_cache