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:
@ -301,7 +301,7 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
|
||||
|
||||
string oldTimeName(runTime.timeName());
|
||||
string oldTimeName(runTime.name());
|
||||
|
||||
if (!overwrite)
|
||||
{
|
||||
@ -358,7 +358,7 @@ int main(int argc, char *argv[])
|
||||
IOobject
|
||||
(
|
||||
"cellMap",
|
||||
runTime.timeName(),
|
||||
runTime.name(),
|
||||
polyMesh::meshSubDir,
|
||||
mesh,
|
||||
IOobject::NO_READ,
|
||||
@ -368,7 +368,7 @@ int main(int argc, char *argv[])
|
||||
);
|
||||
newToOld.note() =
|
||||
"From cells in mesh at "
|
||||
+ runTime.timeName()
|
||||
+ runTime.name()
|
||||
+ " to cells in mesh at "
|
||||
+ oldTimeName;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user