ENH: additional decompose options

- decomposePar: -no-fields to suppress decomposition of fields

- makeFaMesh: -no-decompose to suppress creation of *ProcAddressing
  and fields, -no-fields to suppress decomposition of fields only
This commit is contained in:
Mark Olesen
2021-11-08 11:57:41 +01:00
parent e8aa3aad25
commit a78e79908b
7 changed files with 279 additions and 191 deletions

View File

@ -46,13 +46,6 @@ void Foam::faFieldDecomposer::readFields
// Search list of objects for fields of type GeoField
IOobjectList fieldObjects(objects.lookupClass<GeoField>());
/// // Remove the cellDist field
/// auto iter = fieldObjects.find("cellDist");
/// if (iter.found())
/// {
/// fieldObjects.erase(iter);
/// }
// Use sorted set of names
// (different processors might read objects in different order)
const wordList masterNames(fieldObjects.sortedNames());

View File

@ -155,19 +155,19 @@ public:
// Settings
//- Number of processor in decomposition
label nProcs() const
label nProcs() const noexcept
{
return nProcs_;
}
//- Is decomposition data to be distributed for each processor
bool distributed() const
bool distributed() const noexcept
{
return distributed_;
}
//- Change distributed flag
bool distributed(const bool on)
bool distributed(const bool on) noexcept
{
bool old(distributed_);
distributed_ = on;
@ -175,13 +175,13 @@ public:
}
//- Are global face zones used
bool useGlobalFaceZones() const
bool useGlobalFaceZones() const noexcept
{
return distributed_;
}
//- Change global face zones flag
bool useGlobalFaceZones(const bool on)
bool useGlobalFaceZones(const bool on) noexcept
{
bool old(hasGlobalFaceZones_);
hasGlobalFaceZones_ = on;