ThunderEgg  1.0.0
IfaceInfo.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_SCHUR_IFACEINFO_H
22 #define THUNDEREGG_SCHUR_IFACEINFO_H
23 
29 #include <deque>
30 #include <map>
31 namespace ThunderEgg {
32 namespace Schur {
42 template<int D>
43 class IfaceInfo
44 {
45 public:
49  int rank;
53  int id;
61  int col_local_index = -1;
65  int row_local_index = -1;
69  int global_index = -1;
78  IfaceInfo(int rank, int id)
79  : rank(rank)
80  , id(id)
81  {}
85  virtual ~IfaceInfo() {}
86 };
87 } // namespace Schur
88 } // namespace ThunderEgg
89 #endif
ThunderEgg::Schur::IfaceInfo::IfaceInfo
IfaceInfo(int rank, int id)
Construct a new IfaceInfo object.
Definition: IfaceInfo.h:78
IfaceType.h
IfaceType class.
ThunderEgg::Schur::IfaceInfo::col_local_index
int col_local_index
the local index in the interface for the local column interface vector
Definition: IfaceInfo.h:61
ThunderEgg::Schur::IfaceInfo::patch_local_index
int patch_local_index
the local index in the interface for the local patch interface vector
Definition: IfaceInfo.h:57
ThunderEgg::Schur::IfaceInfo::~IfaceInfo
virtual ~IfaceInfo()
Destroy the IfaceInfo object.
Definition: IfaceInfo.h:85
ThunderEgg
The ThunderEgg namespace.
Definition: BiLinearGhostFiller.h:31
ThunderEgg::Schur::IfaceInfo
The IfaceInfo class represents the information for an interface on a given side of the patch.
Definition: IfaceInfo.h:43
ThunderEgg::Schur::IfaceInfo::global_index
int global_index
the global index in the interface vector.
Definition: IfaceInfo.h:69
ThunderEgg::Schur::IfaceInfo::row_local_index
int row_local_index
the local index in the interface for the local row interface vector
Definition: IfaceInfo.h:65
ThunderEgg::Schur::IfaceInfo::rank
int rank
The rank that the interface resides on.
Definition: IfaceInfo.h:49
ThunderEgg::Schur::IfaceInfo::id
int id
The globally unique ID of the interface.
Definition: IfaceInfo.h:53