mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: suppress cell/patch/proc ids for foamToVTK (#1230)
- reduces output size, consistent with vtkWrite function object STYLE: mark some foamToVTK options as advanced (ie, visible with -help-full)
This commit is contained in:
committed by
Andrew Heather
parent
aafbca93b2
commit
5d445f4ed6
@ -528,15 +528,13 @@ bool Foam::functionObjects::vtkWrite::write()
|
||||
{
|
||||
if (internalWriter.valid())
|
||||
{
|
||||
// cellIds + procIds (parallel)
|
||||
// Optionally with cellID and procID fields
|
||||
internalWriter->beginCellData
|
||||
(
|
||||
(writeIds_ ? 1 + (internalWriter->parallel() ? 1 : 0) : 0)
|
||||
+ (internalWriter->parallel() ? 1 : 0)
|
||||
+ nVolFields + nDimFields
|
||||
);
|
||||
|
||||
// Write cellID field + procID (parallel only)
|
||||
if (writeIds_)
|
||||
{
|
||||
internalWriter->writeCellIDs();
|
||||
@ -548,11 +546,13 @@ bool Foam::functionObjects::vtkWrite::write()
|
||||
{
|
||||
for (vtk::patchWriter& writer : patchWriters)
|
||||
{
|
||||
// Optionally with patchID field
|
||||
writer.beginCellData
|
||||
(
|
||||
(writeIds_ ? 1 : 0)
|
||||
+ nVolFields
|
||||
);
|
||||
|
||||
if (writeIds_)
|
||||
{
|
||||
writer.writePatchIDs();
|
||||
|
||||
Reference in New Issue
Block a user