ENH: consistency in handling of ensight timeDir (issue #919)

This commit is contained in:
mattijs
2018-07-05 13:53:59 +01:00
committed by Mark Olesen
parent f72fb23d30
commit 3328ec31dd

View File

@ -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))
{ {