mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: foamToVTK attempt finite-area write if -with-ids is specified
- previously filtered on the existence of area fields, but with faMesh::TryNew this is not required anymore. STYLE: enable -verbose for various parallel utilities (consistency)
This commit is contained in:
@ -334,10 +334,7 @@ int main(int argc, char *argv[])
|
||||
"Test without writing the decomposition. "
|
||||
"Changes -cellDist to only write VTK output."
|
||||
);
|
||||
argList::addVerboseOption
|
||||
(
|
||||
"Additional verbosity"
|
||||
);
|
||||
argList::addVerboseOption("Additional verbosity");
|
||||
argList::addOption
|
||||
(
|
||||
"domains",
|
||||
|
||||
@ -92,6 +92,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
#include "addAllRegionOptions.H"
|
||||
|
||||
argList::addVerboseOption("Additional verbosity");
|
||||
argList::addOption
|
||||
(
|
||||
"fields",
|
||||
|
||||
@ -614,6 +614,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
argList::noParallel();
|
||||
|
||||
argList::addVerboseOption("Additional verbosity");
|
||||
argList::addBoolOption
|
||||
(
|
||||
"addressing-only",
|
||||
|
||||
@ -2443,6 +2443,7 @@ int main(int argc, char *argv[])
|
||||
"Test without writing the decomposition. "
|
||||
"Changes -cellDist to only write volScalarField."
|
||||
);
|
||||
argList::addVerboseOption("Additional verbosity");
|
||||
argList::addBoolOption
|
||||
(
|
||||
"cellDist",
|
||||
|
||||
@ -44,7 +44,7 @@ if (doFiniteArea)
|
||||
const label nAreaFields =
|
||||
objects.count(stringListOps::foundOp<word>(fieldTypes::area));
|
||||
|
||||
if (nAreaFields)
|
||||
if (nAreaFields || withMeshIds)
|
||||
{
|
||||
faMeshPtr = faMesh::TryNew(meshProxy.baseMesh());
|
||||
}
|
||||
@ -67,6 +67,8 @@ if (doFiniteArea)
|
||||
),
|
||||
Pstream::parRun()
|
||||
);
|
||||
Info<< " Area : "
|
||||
<< args.relativePath(writer.output()) << nl;
|
||||
|
||||
writer.beginFile(areaMesh.name());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user