mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
ENH: Minimal referring of vertices to construct parallel interface.
This commit is contained in:
@ -426,6 +426,22 @@ private:
|
||||
const Delaunay::Finite_vertices_iterator& vit
|
||||
) const;
|
||||
|
||||
//- Build the parallelInterfaces of the mesh
|
||||
void buildParallelInterface();
|
||||
|
||||
//- Build map to refer vertices to target processors
|
||||
mapDistribute buildReferringMap
|
||||
(
|
||||
const DynamicList<label>& targetProcessor
|
||||
) const;
|
||||
|
||||
void referVertices
|
||||
(
|
||||
const DynamicList<label>& targetProcessor,
|
||||
DynamicList<Foam::point>& parallelInterfacePoints,
|
||||
DynamicList<label>& parallelInterfaceIndices
|
||||
);
|
||||
|
||||
//- Check to see if dual cell specified by given vertex iterator
|
||||
// intersects the parallel interface, hence needs referred. Returns
|
||||
// destination processor(s).
|
||||
|
||||
@ -1861,7 +1861,7 @@ void Foam::conformalVoronoiMesh::createFacesOwnerNeighbourAndPatches
|
||||
procNeighbours[defaultPatchIndex] = -1;
|
||||
patchNames[defaultPatchIndex] = "cvMesh_defaultPatch";
|
||||
|
||||
Pout<< patchTypes << " " << patchNames << endl;
|
||||
// Pout<< patchTypes << " " << patchNames << endl;
|
||||
|
||||
label nPatches = patchNames.size();
|
||||
|
||||
@ -1923,8 +1923,8 @@ void Foam::conformalVoronoiMesh::createFacesOwnerNeighbourAndPatches
|
||||
|
||||
if (vA->referredInternal() || vB->referredInternal())
|
||||
{
|
||||
// One (and only one) of the points is from another
|
||||
// processor
|
||||
// One (and only one) of the points is an internal
|
||||
// point from another processor
|
||||
|
||||
label procIndex = max(vA->procIndex(), vB->procIndex());
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -203,7 +203,7 @@ public:
|
||||
// is this a referred vertex
|
||||
inline bool referred() const
|
||||
{
|
||||
return type_ < 0 && type_ > ptFarPoint;
|
||||
return (type_ < 0 && type_ > ptFarPoint);
|
||||
}
|
||||
|
||||
|
||||
@ -217,11 +217,11 @@ public:
|
||||
// is this a referred external (pair slave) vertex
|
||||
inline bool referredExternal() const
|
||||
{
|
||||
return referred() && index_ == -1;
|
||||
return referred() && index_ < 0;
|
||||
}
|
||||
|
||||
|
||||
// For referred vertices, what is the processor index
|
||||
// For referred vertices, what is the original processor index
|
||||
inline int procIndex() const
|
||||
{
|
||||
if (referred())
|
||||
@ -266,7 +266,7 @@ public:
|
||||
//- Master of a pointPair is the lowest numbered one.
|
||||
inline bool ppMaster() const
|
||||
{
|
||||
if (type_ > index_)
|
||||
if (index_ >= 0 && type_ > index_)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user