deal.II version GIT relicensing-2289-g1e5549a87a 2024-12-21 21:30:00+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
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
typename MeshType::cell_iterator cell_iterator
ObserverPointer< const MeshType, InterGridMap< MeshType > > destination_grid
std::vector< std::vector< cell_iterator > > mapping
ObserverPointer< const MeshType, InterGridMap< MeshType > > source_grid
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:498
#define DEAL_II_CXX20_REQUIRES(condition)
Definition config.h:175
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:499
#define DeclException0(Exception0)
Definition exceptions.h:466
#define DeclException1(Exception1, type1, outsequence)
Definition exceptions.h:511