67 inputMeshFaces_.
clear();
68 boundaryToCompact_.
clear();
76 return boundaryToCompact_.size();
80 return inputMeshFaces_.size();
87 inputMeshFaces_.clear();
88 boundaryToCompact_.clear();
90 const auto& procConnections = areaMesh.boundaryConnections();
96 inputMeshFaces_.resize(procConnections.size());
98 forAll(procConnections, connecti)
101 const auto& tuple = procConnections[connecti];
103 const label nbrFacei = tuple.second();
105 inputMeshFaces_[connecti] = nbrFacei;
114 const globalIndex globalFaceNum(areaMesh.mesh().nFaces());
121 areaMesh.faceLabels(),
122 areaMesh.patch().boundaryFaces()
132 List<Map<label>> compactMap(nProcs, Map<label>(0));
137 forAll(connectivity, connecti)
139 labelList& edgeFaces = connectivity[connecti];
146 const auto& tuple = procConnections[connecti];
147 const label nbrProci = tuple.first();
148 const label nbrFacei = tuple.second();
150 if (myRank == nbrProci)
153 localUsed.insert(nbrFacei);
157 edgeFaces[0] = globalFaceNum.toGlobal(insideFaces[connecti]);
158 edgeFaces[1] = globalFaceNum.toGlobal(nbrProci, nbrFacei);
162 static_cast<mapDistributeBase&
>(*this) = mapDistributeBase
174 inputMeshFaces_ = localUsed.sortedToc();
176 boundaryToCompact_.clear();
177 boundaryToCompact_.resize(connectivity.size());
183 forAll(connectivity, connecti)
185 const labelList& edgeFaces = connectivity[connecti];
187 const label face1 = edgeFaces[1];
189 boundaryToCompact_[connecti] = face1;
Finite area mesh (used for 2-D non-Euclidian finite area method) defined using a patch of faces on a ...
void resize(const label len)
Adjust allocated size of list.
static bool & parRun() noexcept
Test if this a parallel run.
static int & msgType() noexcept
Message tag of standard messages.
static int myProcNo(const label communicator=worldComm)
Rank of this process in the communicator (starting from masterNo()). Can be negative if the process i...
List< labelList > labelListList
List of labelList.
#define forAll(list, i)
Loop across all elements in list.
HashSet< label, Hash< label > > labelHashSet
A HashSet of labels, uses label hasher.
static label nProcs(const label communicator=worldComm)
Number of ranks in parallel run (for given communicator). It is 1 for serial run. ...
void clear()
Clear the list, i.e. set size to zero.
Class containing processor-to-processor mapping information.
void reset(const faMesh &mesh)
Redefine map and connectivity for a mesh.
faMeshBoundaryHalo(const label comm=UPstream::worldComm)
Default construct.
void clear()
Clear out all parameters.
defineTypeNameAndDebug(combustionModel, 0)
label haloSize() const
The local data size (output)
Mesh data needed to do the Finite Area discretisation.
List< label > labelList
A List of labels.
mapDistributeBase() noexcept
Default construct (uses worldComm)
Class for obtaining halo face data for the boundary edges. The ordering follows that natural edge ord...