ThunderEgg  1.0.0
TriLinearGhostFiller.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_TRILINEARGHOSTFILLER_H
22 #define THUNDEREGG_TRILINEARGHOSTFILLER_H
23 
29 #include <ThunderEgg/GMG/Level.h>
31 namespace ThunderEgg {
39 {
40 public:
41  void fillGhostCellsForNbrPatch(const PatchInfo<3>& pinfo,
42  const PatchView<const double, 3>& local_view,
43  const PatchView<const double, 3>& nbr_view,
44  Side<3> side,
45  NbrType nbr_type,
46  Orthant<2> orthant_on_coarse) const override;
47 
48  void fillGhostCellsForEdgeNbrPatch(const PatchInfo<3>& pinfo,
49  const PatchView<const double, 3>& local_view,
50  const PatchView<const double, 3>& nbr_view,
51  Edge edge,
52  NbrType nbr_type,
53  Orthant<1> orthant_on_coarse) const override;
54 
55  void fillGhostCellsForCornerNbrPatch(const PatchInfo<3>& pinfo,
56  const PatchView<const double, 3>& local_view,
57  const PatchView<const double, 3>& nbr_view,
58  Corner<3> corner,
59  NbrType nbr_type) const override;
60 
61  void fillGhostCellsForLocalPatch(const PatchInfo<3>& pinfo,
62  const PatchView<const double, 3>& view) const override;
71  TriLinearGhostFiller(const Domain<3>& domain, GhostFillingType fill_type);
77  TriLinearGhostFiller* clone() const override;
78 };
79 } // namespace ThunderEgg
80 #endif
ThunderEgg::TriLinearGhostFiller::clone
TriLinearGhostFiller * clone() const override
Clone this TriLienarGhostFiller.
ThunderEgg::Orthant
An enum-style class that represents the octants of a cube.
Definition: Orthant.h:43
ThunderEgg::GhostFillingType
GhostFillingType
type of ghost filling.
Definition: GhostFillingType.h:33
MPIGhostFiller.h
MPIGhostFiller class.
ThunderEgg::Domain< 3 >
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::TriLinearGhostFiller::TriLinearGhostFiller
TriLinearGhostFiller(const Domain< 3 > &domain, GhostFillingType fill_type)
Construct a new TriLinearGhostFiller object.
ThunderEgg::TriLinearGhostFiller
Performs trilinear interpolation on coarse-fine boundaries of patches.
Definition: TriLinearGhostFiller.h:38
ThunderEgg::PatchInfo
Contains metadata for a patch.
Definition: PatchInfo.h:51
ThunderEgg::Face
Enum-style class for the faces of an n-dimensional cube.
Definition: Face.h:41