ENH: Create surface writer with additional dictionary options
This commit is contained in:
parent
cc1e1a725f
commit
bc7d36e0ff
@ -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
|
||||
|
@ -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()
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user