Reference documentation for deal.II version Git 840703ecf3 2019-10-14 17:15:20 -0400
\(\newcommand{\dealcoloneq}{\mathrel{\vcenter{:}}=}\)
mapping_q_cache.h
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2019 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 
22 #include <deal.II/fe/mapping_q_generic.h>
23 
24 #include <deal.II/grid/tria.h>
25 
26 
27 DEAL_II_NAMESPACE_OPEN
28 
29 
30 
33 
34 
45 template <int dim, int spacedim = dim>
46 class MappingQCache : public MappingQGeneric<dim, spacedim>
47 {
48 public:
54  explicit MappingQCache(const unsigned int polynomial_degree);
55 
59  explicit MappingQCache(const MappingQCache<dim, spacedim> &mapping);
60 
65 
69  virtual std::unique_ptr<Mapping<dim, spacedim>>
70  clone() const override;
71 
76  virtual bool
77  preserves_vertex_locations() const override;
78 
85  void
86  initialize(const Triangulation<dim, spacedim> & triangulation,
87  const MappingQGeneric<dim, spacedim> &mapping);
88 
92  std::size_t
93  memory_consumption() const;
94 
95 protected:
99  virtual std::vector<Point<spacedim>>
101  const typename Triangulation<dim, spacedim>::cell_iterator &cell)
102  const override;
103 
104 private:
110  std::shared_ptr<std::vector<std::vector<std::vector<Point<spacedim>>>>>
112 
117  boost::signals2::connection clear_signal;
118 };
119 
122 DEAL_II_NAMESPACE_CLOSE
123 
124 #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
void initialize(const Triangulation< dim, spacedim > &triangulation, const MappingQGeneric< dim, spacedim > &mapping)
boost::signals2::connection clear_signal
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
std::shared_ptr< std::vector< std::vector< std::vector< Point< spacedim > > > > > support_point_cache