From 63f0794020513a5497cfe59c404f79c7656893c0 Mon Sep 17 00:00:00 2001 From: Hrvoje Jasak Date: Mon, 19 Sep 2011 12:05:13 +0100 Subject: [PATCH] Bug fix: missing mode in allocator. Valerio Novaresio --- src/OpenFOAM/db/IOstreams/Fstreams/OFstream.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/OpenFOAM/db/IOstreams/Fstreams/OFstream.C b/src/OpenFOAM/db/IOstreams/Fstreams/OFstream.C index bd170e02b..5bc29e78b 100644 --- a/src/OpenFOAM/db/IOstreams/Fstreams/OFstream.C +++ b/src/OpenFOAM/db/IOstreams/Fstreams/OFstream.C @@ -61,7 +61,7 @@ Foam::OFstreamAllocator::OFstreamAllocator rm(pathname); } - ofPtr_ = new ogzstream((pathname + ".gz").c_str()); + ofPtr_ = new ogzstream((pathname + ".gz").c_str(), mode); } else { @@ -71,7 +71,7 @@ Foam::OFstreamAllocator::OFstreamAllocator rm(pathname + ".gz"); } - ofPtr_ = new ofstream(pathname.c_str()); + ofPtr_ = new ofstream(pathname.c_str(), mode); } }