ENH: Create surface writer with additional dictionary options

This commit is contained in:
andy 2012-10-10 15:05:11 +01:00
parent cc1e1a725f
commit bc7d36e0ff
2 changed files with 14 additions and 2 deletions

View File

@ -191,7 +191,12 @@ void Foam::FacePostProcessing<CloudType>::write()
autoPtr<surfaceWriter> writer
(
surfaceWriter::New(surfaceFormat_)
surfaceWriter::New
(
surfaceFormat_,
this->coeffDict().subOrEmptyDict("formatOptions").
subOrEmptyDict(surfaceFormat_)
)
);
writer->write

View File

@ -457,9 +457,16 @@ void Foam::fieldValues::faceSource::initialise(const dictionary& dict)
if (valueOutput_)
{
const word surfaceFormat(dict.lookup("surfaceFormat"));
surfaceWriterPtr_.reset
(
surfaceWriter::New(dict.lookup("surfaceFormat")).ptr()
surfaceWriter::New
(
surfaceFormat,
dict.subOrEmptyDict("formatOptions").
subOrEmptyDict(surfaceFormat)
).ptr()
);
}
}