ThunderEgg  1.0.0
BiQuadraticGhostFiller.h
Go to the documentation of this file.
1 /***************************************************************************
2  * ThunderEgg, a library for solvers on adaptively refined block-structured
3  * Cartesian grids.
4  *
5  * Copyright (c) 2020-2021 Scott Aiton
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <https://www.gnu.org/licenses/>.
19  ***************************************************************************/
20 
21 #ifndef THUNDEREGG_BIQUADRATICGHOSTFILLER_H
22 #define THUNDEREGG_BIQUADRATICGHOSTFILLER_H
23 
28 #include <ThunderEgg/GMG/Level.h>
30 namespace ThunderEgg {
36 {
37 public:
44  BiQuadraticGhostFiller(const Domain<2>& domain, GhostFillingType fill_type);
50  BiQuadraticGhostFiller* clone() const override;
51 
52  void fillGhostCellsForNbrPatch(const PatchInfo<2>& pinfo,
53  const PatchView<const double, 2>& local_view,
54  const PatchView<const double, 2>& nbr_view,
55  Side<2> side,
56  NbrType nbr_type,
57  Orthant<1> orthant_on_coarse) const override;
58 
59  void fillGhostCellsForEdgeNbrPatch(const PatchInfo<2>& pinfo,
60  const PatchView<const double, 2>& local_view,
61  const PatchView<const double, 2>& nbr_view,
62  Edge edge,
63  NbrType nbr_type,
64  Orthant<1> orthant_on_coarse) const override;
65 
66  void fillGhostCellsForCornerNbrPatch(const PatchInfo<2>& pinfo,
67  const PatchView<const double, 2>& local_view,
68  const PatchView<const double, 2>& nbr_view,
69  Corner<2> corner,
70  NbrType nbr_type) const override;
71 
72  void fillGhostCellsForLocalPatch(const PatchInfo<2>& pinfo,
73  const PatchView<const double, 2>& view) const override;
74 };
75 } // namespace ThunderEgg
76 #endif
ThunderEgg::Orthant
An enum-style class that represents the octants of a cube.
Definition: Orthant.h:43
ThunderEgg::BiQuadraticGhostFiller
Exchanges ghost cells on patches, handles refinement boundaries with a biquadratic interpolation sche...
Definition: BiQuadraticGhostFiller.h:35
ThunderEgg::GhostFillingType
GhostFillingType
type of ghost filling.
Definition: GhostFillingType.h:33
MPIGhostFiller.h
MPIGhostFiller class.
ThunderEgg::Domain< 2 >
Level.h
Level class.
ThunderEgg::NbrType
NbrType
The type of neighbor.
Definition: NbrType.h:34
ThunderEgg::MPIGhostFiller
Parallell ghostfiller implimented with MPI.
Definition: MPIGhostFiller.h:45
ThunderEgg::PatchView
View for accessing data of a patch. It supports variable striding.
Definition: PatchView.h:37
ThunderEgg
The ThunderEgg namespace.
Definition: BiLinearGhostFiller.h:31
ThunderEgg::PatchInfo
Contains metadata for a patch.
Definition: PatchInfo.h:51
ThunderEgg::BiQuadraticGhostFiller::clone
BiQuadraticGhostFiller * clone() const override
Clone this BiQuadraticGhostFiller.
ThunderEgg::BiQuadraticGhostFiller::BiQuadraticGhostFiller
BiQuadraticGhostFiller(const Domain< 2 > &domain, GhostFillingType fill_type)
Construct a new BiQuadraticGhostFiller object.
ThunderEgg::Face
Enum-style class for the faces of an n-dimensional cube.
Definition: Face.h:41