mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: consistency in handling of ensight timeDir (issue #919)
This commit is contained in:
@ -142,7 +142,10 @@ void Foam::ensightSurfaceWriter::updateMesh
|
|||||||
|
|
||||||
const fileName baseDir = outputDir.path()/surfName;
|
const fileName baseDir = outputDir.path()/surfName;
|
||||||
const fileName timeDir = outputDir.name();
|
const fileName timeDir = outputDir.name();
|
||||||
const scalar timeValue = readScalar(timeDir);
|
|
||||||
|
// Convert timeDir to a value (if possible - use 0.0 otherwise)
|
||||||
|
scalar timeValue = 0.0;
|
||||||
|
readScalar(timeDir, timeValue);
|
||||||
|
|
||||||
if (!isDir(baseDir))
|
if (!isDir(baseDir))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user