Report patch name instead of index in debug

This commit is contained in:
Hrvoje Jasak 2015-08-25 11:12:02 +01:00
parent f784f75f1b
commit cb20a654f1

View file

@ -195,7 +195,8 @@ void Foam::ggiPolyPatch::calcPatchToPatch() const
if (debug) if (debug)
{ {
InfoIn("void ggiPolyPatch::calcPatchToPatch() const") InfoIn("void ggiPolyPatch::calcPatchToPatch() const")
<< "Calculating patch to patch interpolation" << endl; << "Calculating patch to patch interpolation for patch"
<< name() << endl;
} }
// Create interpolation for zones // Create interpolation for zones
@ -258,6 +259,13 @@ void Foam::ggiPolyPatch::calcReconFaceCellCentres() const
<< abort(FatalError); << abort(FatalError);
} }
if (debug)
{
InfoIn("void ggiPolyPatch::calcReconFaceCellCentres() const")
<< "Calculating recon centres for patch"
<< name() << endl;
}
// Create neighbouring face centres using interpolation // Create neighbouring face centres using interpolation
if (master()) if (master())
{ {
@ -366,7 +374,7 @@ void Foam::ggiPolyPatch::calcSendReceive() const
if (debug) if (debug)
{ {
Pout<< "ggiPolyPatch::calcSendReceive() const for patch " Pout<< "ggiPolyPatch::calcSendReceive() const for patch "
<< index() << endl; << name() << endl;
} }
if (!Pstream::parRun()) if (!Pstream::parRun())