BUG: writeFile - corrected write of output file at start time
This commit is contained in:
parent
cc16d9dabe
commit
d26ed93389
@ -3,7 +3,7 @@
|
|||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2012-2016 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2012-2016 OpenFOAM Foundation
|
||||||
\\/ M anipulation | Copyright (C) 2015-2016 OpenCFD Ltd.
|
\\/ M anipulation | Copyright (C) 2015-2017 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -92,8 +92,9 @@ Foam::autoPtr<Foam::OFstream> Foam::functionObjects::writeFile::createFile
|
|||||||
|
|
||||||
if (Pstream::master() && writeToFile_)
|
if (Pstream::master() && writeToFile_)
|
||||||
{
|
{
|
||||||
const scalar timeNow = fileObr_.time().timeOutputValue();
|
const scalar startTime = fileObr_.time().startTime().value();
|
||||||
const word startTimeName = Time::timeName(timeNow);
|
const scalar userStartTime = fileObr_.time().timeToUserTime(startTime);
|
||||||
|
const word startTimeName = Time::timeName(userStartTime);
|
||||||
|
|
||||||
fileName outputDir(baseFileDir()/prefix_/startTimeName);
|
fileName outputDir(baseFileDir()/prefix_/startTimeName);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user