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.
28 lines
466 B
C++
28 lines
466 B
C++
typeIOobject<pointIOField> ioPoints
|
|
(
|
|
"points",
|
|
runTime.name(),
|
|
mesh.name(),
|
|
mesh
|
|
);
|
|
|
|
if (ioPoints.headerOk())
|
|
{
|
|
Info<< "new points available" << endl;
|
|
// Reading new points
|
|
pointIOField newPoints
|
|
(
|
|
IOobject
|
|
(
|
|
"points",
|
|
runTime.name(),
|
|
mesh.name(),
|
|
mesh,
|
|
IOobject::MUST_READ,
|
|
IOobject::NO_WRITE
|
|
)
|
|
);
|
|
|
|
mesh.setPoints(newPoints);
|
|
}
|