Reference documentation for deal.II version GIT relicensing-397-g31a1263477 2024-04-16 03:30:02+00:00
\(\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// SPDX-License-Identifier: LGPL-2.1-or-later
4// Copyright (C) 1999 - 2023 by the deal.II authors
5//
6// This file is part of the deal.II library.
7//
8// Part of the source code is dual licensed under Apache-2.0 WITH
9// LLVM-exception OR LGPL-2.1-or-later. Detailed license information
10// governing the source code and code contributions can be found in
11// LICENSE.md and CONTRIBUTING.md at the top level directory of deal.II.
12//
13// ------------------------------------------------------------------------
14
15#ifndef dealii_intergrid_map_h
16#define dealii_intergrid_map_h
17
18#include <deal.II/base/config.h>
19
21
23
26
28
29
114template <typename MeshType>
117{
118public:
122 using cell_iterator = typename MeshType::cell_iterator;
123
127 InterGridMap();
128
132 void
133 make_mapping(const MeshType &source_grid, const MeshType &destination_grid);
134
142 operator[](const cell_iterator &source_cell) const;
143
147 void
148 clear();
149
153 const MeshType &
154 get_source_grid() const;
155
159 const MeshType &
160 get_destination_grid() const;
161
166 std::size_t
167 memory_consumption() const;
168
172 DeclException1(ExcInvalidKey,
174 << "The iterator " << arg1 << " is not valid as key for "
175 << "this map.");
179 DeclException0(ExcIncompatibleGrids);
180
181private:
185 std::vector<std::vector<cell_iterator>> mapping;
186
191
196
201 void
202 set_mapping(const cell_iterator &src_cell, const cell_iterator &dst_cell);
203
211 void
212 set_entries_to_cell(const cell_iterator &src_cell,
213 const cell_iterator &dst_cell);
214};
215
216
218
219#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:502
#define DEAL_II_CXX20_REQUIRES(condition)
Definition config.h:177
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:503
#define DeclException0(Exception0)
Definition exceptions.h:471
#define DeclException1(Exception1, type1, outsequence)
Definition exceptions.h:516