40 const processorRunTimes& runTimes,
51 new domainDecomposition(runTimes,
regionNames[regioni], *
this)
82 bool decomposed =
false;
86 if (this->
operator[](regioni)().readDecompose())
90 if (regioni != size() - 1)
99 this->operator[](regioni)().postReadDecompose();
104 this->operator[](regioni)().unconformReadDecompose();
109 this->operator[](regioni)().writeReadDecompose(decomposed, doSets);
118 bool reconstructed =
false;
122 if (this->
operator[](regioni)().readReconstruct())
124 reconstructed =
true;
126 if (regioni != size() - 1)
135 this->operator[](regioni)().postReadReconstruct();
140 this->operator[](regioni)().unconformReadReconstruct();
145 this->operator[](regioni)().writeReadReconstruct(reconstructed, doSets);
148 return reconstructed;
160 this->operator[](regioni)().readUpdateDecompose();
167 stat = stat > regionStat ? stat : regionStat;
172 this->operator[](regioni)().postReadUpdateDecompose(stat);
177 this->operator[](regioni)().unconformReadUpdateDecompose(stat);
192 this->operator[](regioni)().readUpdateReconstruct();
199 stat = stat > regionStat ? stat : regionStat;
204 this->operator[](regioni)().postReadUpdateReconstruct(stat);
209 this->operator[](regioni)().unconformReadUpdateReconstruct(stat);
220 this->operator[](regioni)().writeComplete(doSets);
229 this->operator[](regioni)().writeProcs(doSets);
#define forAll(list, i)
Loop across all elements in list.
void size(const label)
Override size to be inconsistent with allocated storage.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
Automatic domain decomposition class for finite-volume meshes.
readUpdateState
Enumeration defining the state of the mesh after a read update.
virtual ~multiDomainDecomposition()
Destructor.
multiDomainDecomposition(const processorRunTimes &procRunTimes, const wordList ®ionNames)
Construct from processor run times and region names.
void writeProcs(const bool doSets) const
Write the decomposed meshes and associated data.
bool readDecompose(const bool doSets)
Read in the complete mesh. Read the processor meshes if they are.
void writeComplete(const bool doSets) const
Write the decomposed meshes and associated data.
bool readReconstruct(const bool doSets)
Read in the processor meshes. Read the complete mesh if it is.
fvMesh::readUpdateState readUpdateReconstruct()
Read-update for reconstruction.
fvMesh::readUpdateState readUpdateDecompose()
Read-update for decomposition.
List< word > wordList
A List of words.
Ostream & endl(Ostream &os)
Add newline and flush stream.
defineTypeNameAndDebug(combustionModel, 0)
const Foam::wordList regionNames(args.optionFound("allRegions") ? runTime .controlDict().subDict("regionSolvers").toc() :wordList(1, args.optionFound("region") ? args.optionRead< word >("region") :polyMesh::defaultRegion))