Skip to content
Snippets Groups Projects
Commit f2c6964a authored by Andrew Heather's avatar Andrew Heather Committed by Mark OLESEN
Browse files

BUG: boundaryDataTemplates - make dir before writing to stream. Fixes #390

parent a236d1dc
No related merge requests found
...@@ -3,7 +3,7 @@ ...@@ -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) 2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2015 OpenFOAM Foundation
\\/ M anipulation | Copyright (C) 2016 OpenCFD Ltd. \\/ M anipulation | Copyright (C) 2016-2017 OpenCFD Ltd.
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
This file is part of OpenFOAM. This file is part of OpenFOAM.
...@@ -114,8 +114,9 @@ Foam::fileName Foam::boundaryDataSurfaceWriter::writeTemplate ...@@ -114,8 +114,9 @@ Foam::fileName Foam::boundaryDataSurfaceWriter::writeTemplate
// Write field // Write field
{ {
fileName valsFile(baseDir/timeName/fieldName); fileName valsDir(baseDir/timeName);
OFstream os(valsFile); mkDir(valsDir);
OFstream os(valsDir/fieldName);
os << values; os << values;
} }
......
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