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.
17 lines
285 B
C++
17 lines
285 B
C++
{
|
|
typeIOobject<pointIOField> io
|
|
(
|
|
"points",
|
|
runTime.name(),
|
|
polyMesh::meshSubDir,
|
|
mesh
|
|
);
|
|
|
|
if (io.headerOk())
|
|
{
|
|
// Read new points
|
|
io.readOpt() = IOobject::MUST_READ;
|
|
mesh.setPoints(pointIOField(io));
|
|
}
|
|
}
|