Commit 3328ec31 authored by mattijs's avatar mattijs Committed by Mark Olesen
Browse files

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

parent f72fb23d
......@@ -142,7 +142,10 @@ void Foam::ensightSurfaceWriter::updateMesh
const fileName baseDir = outputDir.path()/surfName;
const fileName timeDir =;
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))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment