Reference documentation for deal.II version 9.2.0
\(\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\}}\)
intergrid_map.h
Go to the documentation of this file.
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 1999 - 2018 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_intergrid_map_h
17 #define dealii_intergrid_map_h
18 
19 #include <deal.II/base/config.h>
20 
22 
24 
27 
29 
30 
114 template <class MeshType>
115 class InterGridMap : public Subscriptor
116 {
117 public:
121  using cell_iterator = typename MeshType::cell_iterator;
122 
126  InterGridMap();
127 
131  void
132  make_mapping(const MeshType &source_grid, const MeshType &destination_grid);
133 
140  cell_iterator operator[](const cell_iterator &source_cell) const;
141 
145  void
146  clear();
147 
151  const MeshType &
152  get_source_grid() const;
153 
157  const MeshType &
158  get_destination_grid() const;
159 
164  std::size_t
165  memory_consumption() const;
166 
172  << "The iterator " << arg1 << " is not valid as key for "
173  << "this map.");
178 
179 private:
183  std::vector<std::vector<cell_iterator>> mapping;
184 
189 
194 
199  void
200  set_mapping(const cell_iterator &src_cell, const cell_iterator &dst_cell);
201 
209  void
210  set_entries_to_cell(const cell_iterator &src_cell,
211  const cell_iterator &dst_cell);
212 };
213 
214 
216 
217 #endif
tria_accessor.h
InterGridMap::make_mapping
void make_mapping(const MeshType &source_grid, const MeshType &destination_grid)
Definition: intergrid_map.cc:46
InterGridMap::cell_iterator
typename MeshType::cell_iterator cell_iterator
Definition: intergrid_map.h:121
tria_iterator.h
Subscriptor
Definition: subscriptor.h:62
InterGridMap::ExcIncompatibleGrids
static ::ExceptionBase & ExcIncompatibleGrids()
InterGridMap::InterGridMap
InterGridMap()
Definition: intergrid_map.cc:37
InterGridMap::destination_grid
SmartPointer< const MeshType, InterGridMap< MeshType > > destination_grid
Definition: intergrid_map.h:193
InterGridMap::get_source_grid
const MeshType & get_source_grid() const
Definition: intergrid_map.cc:185
InterGridMap
Definition: intergrid_map.h:115
DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:358
InterGridMap::operator[]
cell_iterator operator[](const cell_iterator &source_cell) const
Definition: intergrid_map.cc:157
InterGridMap::ExcInvalidKey
static ::ExceptionBase & ExcInvalidKey(cell_iterator arg1)
DeclException1
#define DeclException1(Exception1, type1, outsequence)
Definition: exceptions.h:518
smartpointer.h
SmartPointer
Definition: smartpointer.h:68
InterGridMap::get_destination_grid
const MeshType & get_destination_grid() const
Definition: intergrid_map.cc:194
InterGridMap::set_entries_to_cell
void set_entries_to_cell(const cell_iterator &src_cell, const cell_iterator &dst_cell)
Definition: intergrid_map.cc:141
InterGridMap::mapping
std::vector< std::vector< cell_iterator > > mapping
Definition: intergrid_map.h:183
dof_accessor.h
DeclException0
#define DeclException0(Exception0)
Definition: exceptions.h:473
InterGridMap::set_mapping
void set_mapping(const cell_iterator &src_cell, const cell_iterator &dst_cell)
Definition: intergrid_map.cc:102
config.h
DEAL_II_NAMESPACE_CLOSE
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:359
InterGridMap::clear
void clear()
Definition: intergrid_map.cc:174
InterGridMap::memory_consumption
std::size_t memory_consumption() const
Definition: intergrid_map.cc:203
InterGridMap::source_grid
SmartPointer< const MeshType, InterGridMap< MeshType > > source_grid
Definition: intergrid_map.h:188