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

@ -85,7 +85,7 @@ void mapCloudTypeFields
: IOobject
(
fieldName,
srcMesh.time().timeName(),
srcMesh.time().name(),
cloud::prefix/cloudDir,
srcMesh,
IOobject::NO_READ,
@ -105,7 +105,7 @@ void mapCloudTypeFields
IOobject
(
fieldName,
tgtMesh.time().timeName(),
tgtMesh.time().name(),
cloud::prefix/cloudDir,
tgtMesh,
IOobject::NO_READ,
@ -263,7 +263,7 @@ void Foam::mapClouds(const fvMeshToFvMesh& interp)
IOobjectList objects
(
srcMesh,
srcMesh.time().timeName(),
srcMesh.time().name(),
cloud::prefix/cloudDirs[cloudi]
);

View File

@ -50,7 +50,7 @@ void mapConsistentMesh
)
{
Info<< nl << "Consistently creating and mapping fields for time "
<< srcMesh.time().timeName() << nl << endl;
<< srcMesh.time().name() << nl << endl;
fvMeshToFvMesh interp(srcMesh, tgtMesh, mapMethod);
@ -82,7 +82,7 @@ void mapSubMesh
)
{
Info<< nl << "Creating and mapping fields for time "
<< srcMesh.time().timeName() << nl << endl;
<< srcMesh.time().name() << nl << endl;
fvMeshToFvMesh interp
(
@ -240,7 +240,7 @@ int main(int argc, char *argv[])
IOobject
(
sourceRegion,
runTimeSource.timeName(),
runTimeSource.name(),
runTimeSource
),
false
@ -251,7 +251,7 @@ int main(int argc, char *argv[])
IOobject
(
targetRegion,
runTimeTarget.timeName(),
runTimeTarget.name(),
runTimeTarget
),
false

View File

@ -141,7 +141,7 @@ void mapVolTypeFields
typeIOobject<VolField<Type>> targetIO
(
fieldName,
tgtMesh.time().timeName(),
tgtMesh.time().name(),
tgtMesh,
IOobject::MUST_READ
);
@ -209,7 +209,7 @@ void Foam::mapGeometricFields
{
// Search for list of source objects for this time
IOobjectList objects(srcMesh, srcMesh.time().timeName());
IOobjectList objects(srcMesh, srcMesh.time().name());
// Map the fields
#define MapVolTypeFields(Type, nullArg) \
@ -225,7 +225,7 @@ void Foam::mapGeometricFields
{
// Search for list of target objects for this time
IOobjectList objects(tgtMesh, tgtMesh.time().timeName());
IOobjectList objects(tgtMesh, tgtMesh.time().name());
// Mark surface and point fields as unmapped
#define UnMappedTypeFields(Type, GeoField) \