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:
@ -151,7 +151,7 @@ void decomposeUniform
|
||||
{
|
||||
fileHandler().ln
|
||||
(
|
||||
parentPath/runTime.timeName()/uniformDir,
|
||||
parentPath/runTime.name()/uniformDir,
|
||||
uniformDir
|
||||
);
|
||||
}
|
||||
@ -169,7 +169,7 @@ void writeDecomposition(const domainDecomposition& meshes)
|
||||
IOobject
|
||||
(
|
||||
"cellProc",
|
||||
meshes.completeMesh().time().timeName(),
|
||||
meshes.completeMesh().time().name(),
|
||||
meshes.completeMesh(),
|
||||
IOobject::NO_READ,
|
||||
IOobject::AUTO_WRITE
|
||||
@ -453,7 +453,7 @@ int main(int argc, char *argv[])
|
||||
(
|
||||
writeCellProc
|
||||
&& meshes.completeMesh().facesInstance()
|
||||
== runTimes.completeTime().timeName()
|
||||
== runTimes.completeTime().name()
|
||||
)
|
||||
{
|
||||
writeDecomposition(meshes);
|
||||
@ -497,7 +497,7 @@ int main(int argc, char *argv[])
|
||||
IOobject
|
||||
(
|
||||
"",
|
||||
procRunTime.timeName(),
|
||||
procRunTime.name(),
|
||||
procRunTime
|
||||
),
|
||||
word::null
|
||||
@ -523,7 +523,7 @@ int main(int argc, char *argv[])
|
||||
IOobjectList objects
|
||||
(
|
||||
meshes.completeMesh(),
|
||||
runTimes.completeTime().timeName()
|
||||
runTimes.completeTime().name()
|
||||
);
|
||||
|
||||
// Construct the vol fields
|
||||
@ -643,7 +643,7 @@ int main(int argc, char *argv[])
|
||||
IOobjectList sprayObjs
|
||||
(
|
||||
meshes.completeMesh(),
|
||||
runTimes.completeTime().timeName(),
|
||||
runTimes.completeTime().name(),
|
||||
cloud::prefix/cloudDirs[i],
|
||||
IOobject::MUST_READ,
|
||||
IOobject::NO_WRITE,
|
||||
@ -736,7 +736,7 @@ int main(int argc, char *argv[])
|
||||
IOobjectList lagrangianObjects
|
||||
(
|
||||
meshes.completeMesh(),
|
||||
runTimes.completeTime().timeName(),
|
||||
runTimes.completeTime().name(),
|
||||
cloud::prefix/cloudDirs[cloudI],
|
||||
IOobject::MUST_READ,
|
||||
IOobject::NO_WRITE,
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -45,7 +45,7 @@ Foam::dimFieldDecomposer::decomposeField
|
||||
IOobject
|
||||
(
|
||||
field.name(),
|
||||
procMesh_.time().timeName(),
|
||||
procMesh_.time().name(),
|
||||
procMesh_,
|
||||
IOobject::NO_READ,
|
||||
IOobject::NO_WRITE,
|
||||
|
||||
@ -113,7 +113,7 @@ Foam::fvFieldDecomposer::decomposeField
|
||||
IOobject
|
||||
(
|
||||
field.name(),
|
||||
procMesh_.time().timeName(),
|
||||
procMesh_.time().name(),
|
||||
procMesh_,
|
||||
IOobject::NO_READ,
|
||||
IOobject::NO_WRITE,
|
||||
@ -258,7 +258,7 @@ Foam::fvFieldDecomposer::decomposeField
|
||||
IOobject
|
||||
(
|
||||
field.name(),
|
||||
procMesh_.time().timeName(),
|
||||
procMesh_.time().name(),
|
||||
procMesh_,
|
||||
IOobject::NO_READ,
|
||||
IOobject::NO_WRITE,
|
||||
|
||||
@ -135,7 +135,7 @@ Foam::lagrangianFieldDecomposer::decomposeField
|
||||
IOobject
|
||||
(
|
||||
field.name(),
|
||||
procMesh_.time().timeName(),
|
||||
procMesh_.time().name(),
|
||||
cloud::prefix/cloudName,
|
||||
procMesh_,
|
||||
IOobject::NO_READ,
|
||||
@ -167,7 +167,7 @@ Foam::lagrangianFieldDecomposer::decomposeFieldField
|
||||
IOobject
|
||||
(
|
||||
field.name(),
|
||||
procMesh_.time().timeName(),
|
||||
procMesh_.time().name(),
|
||||
cloud::prefix/cloudName,
|
||||
procMesh_,
|
||||
IOobject::NO_READ,
|
||||
|
||||
@ -80,7 +80,7 @@ Foam::pointFieldDecomposer::decomposeField
|
||||
IOobject
|
||||
(
|
||||
field.name(),
|
||||
procMesh_().time().timeName(),
|
||||
procMesh_().time().name(),
|
||||
procMesh_(),
|
||||
IOobject::NO_READ,
|
||||
IOobject::NO_WRITE,
|
||||
|
||||
Reference in New Issue
Block a user