Skip to content
Snippets Groups Projects
Commit f25c2a11 authored by laurence's avatar laurence
Browse files

ENH: processorPolyPatch::updateMesh outputs FatalError if size of data

on neighbour does not match size of data on the current processor
parent be42c48c
Branches
Tags
No related merge requests found
...@@ -369,6 +369,24 @@ void Foam::processorPolyPatch::updateMesh(PstreamBuffers& pBufs) ...@@ -369,6 +369,24 @@ void Foam::processorPolyPatch::updateMesh(PstreamBuffers& pBufs)
>> nbrPointIndex >> nbrPointIndex
>> nbrEdgeFace >> nbrEdgeFace
>> nbrEdgeIndex; >> nbrEdgeIndex;
if
(
nbrPointIndex.size() != nPoints()
|| nbrEdgeIndex.size() != nEdges()
)
{
FatalErrorIn
(
"processorPolyPatch::updateMesh(PstreamBuffers&)"
) << "Size of data from processor " << neighbProcNo()
<< " does not match size of data on processor "
<< Pstream::myProcNo() << "." << nl
<< " Neighbour has " << nbrPointFace.size()
<< " points and " << nbrEdgeFace.size() << " edges." << nl
<< " This proc has " << nPoints() << " points and "
<< nEdges() << " edges." << exit(FatalError);
}
} }
// Convert neighbour faces and indices into face back into // Convert neighbour faces and indices into face back into
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment