Reference documentation for deal.II version 9.5.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\}}\)
Loading...
Searching...
No Matches
intergrid_map.h
Go to the documentation of this file.
1// ---------------------------------------------------------------------
2//
3// Copyright (C) 1999 - 2023 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
115template <class MeshType>
118{
119public:
123 using cell_iterator = typename MeshType::cell_iterator;
124
128 InterGridMap();
129
133 void
134 make_mapping(const MeshType &source_grid, const MeshType &destination_grid);
135
143 operator[](const cell_iterator &source_cell) const;
144
148 void
149 clear();
150
154 const MeshType &
155 get_source_grid() const;
156
160 const MeshType &
161 get_destination_grid() const;
162
167 std::size_t
168 memory_consumption() const;
169
173 DeclException1(ExcInvalidKey,
175 << "The iterator " << arg1 << " is not valid as key for "
176 << "this map.");
180 DeclException0(ExcIncompatibleGrids);
181
182private:
186 std::vector<std::vector<cell_iterator>> mapping;
187
192
197
202 void
203 set_mapping(const cell_iterator &src_cell, const cell_iterator &dst_cell);
204
212 void
213 set_entries_to_cell(const cell_iterator &src_cell,
214 const cell_iterator &dst_cell);
215};
216
217
219
220#endif
SmartPointer< const MeshType, InterGridMap< MeshType > > source_grid
typename MeshType::cell_iterator cell_iterator
SmartPointer< const MeshType, InterGridMap< MeshType > > destination_grid
std::vector< std::vector< cell_iterator > > mapping
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:472
#define DEAL_II_CXX20_REQUIRES(condition)
Definition config.h:160
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:473
#define DeclException0(Exception0)
Definition exceptions.h:465
#define DeclException1(Exception1, type1, outsequence)
Definition exceptions.h:510