From 514aff79a3a8c6fee3322f60504c139805702c32 Mon Sep 17 00:00:00 2001 From: mattijs <mattijs> Date: Mon, 8 Feb 2010 11:16:47 +0000 Subject: [PATCH] ENH: dump .obj file in case of mismatched processor patch. --- .../constraint/processor/processorPolyPatch.C | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/OpenFOAM/meshes/polyMesh/polyPatches/constraint/processor/processorPolyPatch.C b/src/OpenFOAM/meshes/polyMesh/polyPatches/constraint/processor/processorPolyPatch.C index 05969ee5933..9e243fc97c0 100644 --- a/src/OpenFOAM/meshes/polyMesh/polyPatches/constraint/processor/processorPolyPatch.C +++ b/src/OpenFOAM/meshes/polyMesh/polyPatches/constraint/processor/processorPolyPatch.C @@ -206,6 +206,15 @@ void Foam::processorPolyPatch::calcGeometry(PstreamBuffers& pBufs) } else if (mag(magSf - nbrMagSf)/avSf > coupledPolyPatch::matchTol) { + fileName nm + ( + boundaryMesh().mesh().time().path() + /name()+"_faces.obj" + ); + Pout<< "processorPolyPatch::order : Writing my " << size() + << " faces to OBJ file " << nm << endl; + writeOBJ(nm, *this, points()); + FatalErrorIn ( "processorPolyPatch::calcGeometry()" -- GitLab