ENH: add IOobject::objectRelPath() for compact output (#2195)

This commit is contained in:
Mark Olesen
2021-09-02 16:12:17 +02:00
parent 610711ac47
commit 96adf3ae80
10 changed files with 57 additions and 11 deletions

View File

@ -647,7 +647,7 @@ int main(int argc, char *argv[])
cellDecomposition.write();
Info<< nl << "Wrote decomposition to "
<< runTime.relativePath(cellDecomposition.objectPath())
<< cellDecomposition.objectRelPath()
<< " for use in manual decomposition." << endl;
}

View File

@ -160,7 +160,7 @@ void Foam::domainDecompositionDryRun::execute
// cellDecomposition.write();
//
// Info<< nl << "Wrote decomposition to "
// << runTime.relativePath(cellDecomposition.objectPath())
// << cellDecomposition.objectRelPath()
// << " for use in manual decomposition." << endl;
Info<< nl;

View File

@ -64,7 +64,7 @@ void Foam::domainDecompositionDryRun::writeVolField
cellDist.write();
Info<< nl << "Wrote decomposition to "
<< this->mesh().time().relativePath(cellDist.objectPath())
<< cellDist.objectRelPath()
<< " (volScalarField) for visualization."
<< endl;
}

View File

@ -65,7 +65,7 @@ void Foam::domainDecomposition::writeVolField
cellDist.write();
Info<< nl << "Wrote decomposition to "
<< this->mesh().time().relativePath(cellDist.objectPath())
<< cellDist.objectRelPath()
<< " (volScalarField) for visualization."
<< endl;
}