mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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:
@ -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());
|
||||
|
||||
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user