Time::timeName(): no longer needed, calls replaced by name()

The timeName() function simply returns the dimensionedScalar::name() which holds
the user-time name of the current time and now that timeName() is no longer
virtual the dimensionedScalar::name() can be called directly.  The timeName()
function implementation is maintained for backward-compatibility.
This commit is contained in:
Henry Weller
2022-11-30 15:53:51 +00:00
parent 262672ec10
commit ed7e703040
546 changed files with 1612 additions and 1613 deletions

View File

@ -976,7 +976,7 @@ Foam::label Foam::checkGeometry
/functionObjects::writeFile::outputPrefix
/(mesh.name() != polyMesh::defaultRegion ? mesh.name() : word())
/"checkMesh"
/mesh.time().timeName();
/mesh.time().name();
const polyBoundaryMesh& patches = mesh.boundaryMesh();

View File

@ -336,7 +336,7 @@ Foam::label Foam::checkTopology
Info<< " The mesh has multiple regions which are not connected "
"by any face." << endl
<< " <<Writing region information to "
<< mesh.time().timeName()/"cellToRegion"
<< mesh.time().name()/"cellToRegion"
<< endl;
labelIOList ctr
@ -344,7 +344,7 @@ Foam::label Foam::checkTopology
IOobject
(
"cellToRegion",
mesh.time().timeName(),
mesh.time().name(),
mesh,
IOobject::NO_READ,
IOobject::NO_WRITE