From cb20a654f16c5b7145e4c81e0df4aa3d2825e83a Mon Sep 17 00:00:00 2001 From: Hrvoje Jasak Date: Tue, 25 Aug 2015 11:12:02 +0100 Subject: [PATCH] Report patch name instead of index in debug --- .../polyPatches/constraint/ggi/ggiPolyPatch.C | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/foam/meshes/polyMesh/polyPatches/constraint/ggi/ggiPolyPatch.C b/src/foam/meshes/polyMesh/polyPatches/constraint/ggi/ggiPolyPatch.C index 23deecb82..99ee1b8c5 100644 --- a/src/foam/meshes/polyMesh/polyPatches/constraint/ggi/ggiPolyPatch.C +++ b/src/foam/meshes/polyMesh/polyPatches/constraint/ggi/ggiPolyPatch.C @@ -195,7 +195,8 @@ void Foam::ggiPolyPatch::calcPatchToPatch() const if (debug) { InfoIn("void ggiPolyPatch::calcPatchToPatch() const") - << "Calculating patch to patch interpolation" << endl; + << "Calculating patch to patch interpolation for patch" + << name() << endl; } // Create interpolation for zones @@ -258,6 +259,13 @@ void Foam::ggiPolyPatch::calcReconFaceCellCentres() const << abort(FatalError); } + if (debug) + { + InfoIn("void ggiPolyPatch::calcReconFaceCellCentres() const") + << "Calculating recon centres for patch" + << name() << endl; + } + // Create neighbouring face centres using interpolation if (master()) { @@ -366,7 +374,7 @@ void Foam::ggiPolyPatch::calcSendReceive() const if (debug) { Pout<< "ggiPolyPatch::calcSendReceive() const for patch " - << index() << endl; + << name() << endl; } if (!Pstream::parRun())