MueLu Version of the Day
Loading...
Searching...
No Matches
MueLu_UncoupledIndexManager_decl.hpp
Go to the documentation of this file.
1// @HEADER
2// *****************************************************************************
3// MueLu: A package for multigrid based preconditioning
4//
5// Copyright 2012 NTESS and the MueLu contributors.
6// SPDX-License-Identifier: BSD-3-Clause
7// *****************************************************************************
8// @HEADER
9
10#ifndef MUELU_UNCOUPLEDINDEXMANAGER_DECL_HPP
11#define MUELU_UNCOUPLEDINDEXMANAGER_DECL_HPP
12
13// use for Teuchos:Comm<T>
14#include "Teuchos_CommHelpers.hpp"
15
16#include <Xpetra_Map_fwd.hpp>
17
18#include "MueLu_ConfigDefs.hpp"
19#include "MueLu_IndexManager.hpp"
21
22/*****************************************************************************
23
24****************************************************************************/
25
26namespace MueLu {
27
44template <class LocalOrdinal, class GlobalOrdinal, class Node>
45class UncoupledIndexManager : public IndexManager<LocalOrdinal, GlobalOrdinal, Node> {
46#undef MUELU_UNCOUPLEDINDEXMANAGER_SHORT
48
49 public:
50 // LBV: I doubt that it makes sense to have
51 // this particular constructor since it is
52 // not used anywhere and parameters cannot
53 // all accessible after construction.
55
56 UncoupledIndexManager(const RCP<const Teuchos::Comm<int> > comm, const bool coupled,
57 const int NumDimensions, const int interpolationOrder,
58 const int MyRank, const int NumRanks,
59 const Array<GO> GFineNodesPerDir,
60 const Array<LO> LFineNodesPerDir,
61 const Array<LO> CoarseRate,
62 const bool singleCoarsePoint);
63
65
67
68 std::vector<std::vector<GO> > getCoarseMeshData() const;
69
70 void getGhostedNodesData(const RCP<const Map> fineMap,
71 Array<LO>& ghostedNodeCoarseLIDs,
72 Array<int>& ghostedNodeCoarsePIDs,
73 Array<GO>& ghostedNodeCoarseGIDs) const;
74
75 void getCoarseNodesData(const RCP<const Map> fineCoordinatesMap,
76 Array<GO>& coarseNodeCoarseGIDs,
77 Array<GO>& coarseNodeFineGIDs) const;
78
79 void getFineNodeGlobalTuple(const GO myGID, GO& i, GO& j, GO& k) const;
80
81 void getFineNodeLocalTuple(const LO myLID, LO& i, LO& j, LO& k) const;
82
83 void getFineNodeGhostedTuple(const LO myLID, LO& i, LO& j, LO& k) const;
84
85 void getFineNodeGID(const GO i, const GO j, const GO k, GO& myGID) const;
86
87 void getFineNodeLID(const LO i, const LO j, const LO k, LO& myLID) const;
88
89 void getCoarseNodeGlobalTuple(const GO myGID, GO& i, GO& j, GO& k) const;
90
91 void getCoarseNodeLocalTuple(const LO myLID, LO& i, LO& j, LO& k) const;
92
93 void getCoarseNodeGID(const GO i, const GO j, const GO k, GO& myGID) const;
94
95 void getCoarseNodeLID(const LO i, const LO j, const LO k, LO& myLID) const;
96
97 void getCoarseNodeGhostedLID(const LO i, const LO j, const LO k, LO& myLID) const;
98
99 void getCoarseNodeFineLID(const LO i, const LO j, const LO k, LO& myLID) const;
100
101 void getGhostedNodeFineLID(const LO i, const LO j, const LO k, LO& myLID) const;
102
103 void getGhostedNodeCoarseLID(const LO i, const LO j, const LO k, LO& myLID) const;
104
105 private:
106 const int myRank;
107 const int numRanks;
108};
109
110} // namespace MueLu
111
112#define MUELU_UNCOUPLEDINDEXMANAGER_SHORT
113#endif // MUELU_UNCOUPLEDINDEXMANAGER_DECL_HPP
Container class for mesh layout and indices calculation.
void getCoarseNodeGID(const GO i, const GO j, const GO k, GO &myGID) const
void getFineNodeGID(const GO i, const GO j, const GO k, GO &myGID) const
void getCoarseNodesData(const RCP< const Map > fineCoordinatesMap, Array< GO > &coarseNodeCoarseGIDs, Array< GO > &coarseNodeFineGIDs) const
const int numRanks
Number of ranks used to decompose the problem.
void getGhostedNodeFineLID(const LO i, const LO j, const LO k, LO &myLID) const
void getCoarseNodeFineLID(const LO i, const LO j, const LO k, LO &myLID) const
void getGhostedNodesData(const RCP< const Map > fineMap, Array< LO > &ghostedNodeCoarseLIDs, Array< int > &ghostedNodeCoarsePIDs, Array< GO > &ghostedNodeCoarseGIDs) const
void getGhostedNodeCoarseLID(const LO i, const LO j, const LO k, LO &myLID) const
void getCoarseNodeLID(const LO i, const LO j, const LO k, LO &myLID) const
void getFineNodeLID(const LO i, const LO j, const LO k, LO &myLID) const
void getCoarseNodeGhostedLID(const LO i, const LO j, const LO k, LO &myLID) const
std::vector< std::vector< GO > > getCoarseMeshData() const
void getFineNodeLocalTuple(const LO myLID, LO &i, LO &j, LO &k) const
void getCoarseNodeGlobalTuple(const GO myGID, GO &i, GO &j, GO &k) const
void getCoarseNodeLocalTuple(const LO myLID, LO &i, LO &j, LO &k) const
void getFineNodeGhostedTuple(const LO myLID, LO &i, LO &j, LO &k) const
void getFineNodeGlobalTuple(const GO myGID, GO &i, GO &j, GO &k) const
Namespace for MueLu classes and methods.