ThunderEgg  1.0.0
BiLinearGhostFiller.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) 2019-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_BILINEARGHOSTFILLER_H
22 #define THUNDEREGG_BILINEARGHOSTFILLER_H
23 
29 #include <ThunderEgg/GMG/Level.h>
31 namespace ThunderEgg {
37 {
38 public:
45  BiLinearGhostFiller(const Domain<2>& domain, GhostFillingType fill_type);
51  BiLinearGhostFiller* clone() const override;
52 
53  void fillGhostCellsForNbrPatch(const PatchInfo<2>& pinfo,
54  const PatchView<const double, 2>& local_view,
55  const PatchView<const double, 2>& nbr_view,
56  Side<2> sides,
57  NbrType nbr_type,
58  Orthant<1> orthant_on_coarse) const override;
59 
60  void fillGhostCellsForEdgeNbrPatch(const PatchInfo<2>& pinfo,
61  const PatchView<const double, 2>& local_view,
62  const PatchView<const double, 2>& nbr_view,
63  Edge edge,
64  NbrType nbr_type,
65  Orthant<1> orthant_on_coarse) const override;
66 
67  void fillGhostCellsForCornerNbrPatch(const PatchInfo<2>& pinfo,
68  const PatchView<const double, 2>& local_view,
69  const PatchView<const double, 2>& nbr_view,
70  Corner<2> corner,
71  NbrType nbr_type) const override;
72 
73  void fillGhostCellsForLocalPatch(const PatchInfo<2>& pinfo,
74  const PatchView<const double, 2>& view) const override;
75 };
76 } // namespace ThunderEgg
77 #endif
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< 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::BiLinearGhostFiller::clone
BiLinearGhostFiller * clone() const override
Clone this BiLinearGhostFiller.
ThunderEgg::PatchInfo
Contains metadata for a patch.
Definition: PatchInfo.h:51
ThunderEgg::BiLinearGhostFiller::BiLinearGhostFiller
BiLinearGhostFiller(const Domain< 2 > &domain, GhostFillingType fill_type)
Construct a new BiLinearGhostFiller object.
ThunderEgg::BiLinearGhostFiller
Exchanges ghost cells on patches, uses a BiLinear interpolation scheme for refinement boundaries.
Definition: BiLinearGhostFiller.h:36
ThunderEgg::Face
Enum-style class for the faces of an n-dimensional cube.
Definition: Face.h:41