From 603ebff4b2868a10375004d571be567835bd3282 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 | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/foam/meshes/polyMesh/polyPatches/constraint/ggi/ggiPolyPatch.C b/src/foam/meshes/polyMesh/polyPatches/constraint/ggi/ggiPolyPatch.C index 4094d663d..99ee1b8c5 100644 --- a/src/foam/meshes/polyMesh/polyPatches/constraint/ggi/ggiPolyPatch.C +++ b/src/foam/meshes/polyMesh/polyPatches/constraint/ggi/ggiPolyPatch.C @@ -114,7 +114,7 @@ void Foam::ggiPolyPatch::calcRemoteZoneAddressing() const if (debug) { Pout<< "ggiPolyPatch::calcRemoteZoneAddressing() const for patch " - << index() << endl; + << name() << endl; } // Once zone addressing is established, visit the opposite side and find @@ -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())