40 const processorRunTimes& runTimes,
52 new domainDecomposition
90 bool decomposed =
false;
94 if (this->
operator[](regioni)().readDecompose(
false))
98 if (regioni != size() - 1)
107 this->operator[](regioni)().postReadDecompose();
112 this->operator[](regioni)().unconformReadDecompose();
117 this->operator[](regioni)().writeReadDecompose(decomposed, doSets);
126 bool reconstructed =
false;
130 if (this->
operator[](regioni)().readReconstruct(
false))
132 reconstructed =
true;
134 if (regioni != size() - 1)
143 this->operator[](regioni)().postReadReconstruct();
148 this->operator[](regioni)().unconformReadReconstruct();
153 this->operator[](regioni)().writeReadReconstruct(reconstructed, doSets);
156 return reconstructed;
168 this->operator[](regioni)().readUpdateDecompose(
false);
175 stat = stat > regionStat ? stat : regionStat;
180 this->operator[](regioni)().postReadUpdateDecompose(stat);
185 this->operator[](regioni)().unconformReadUpdateDecompose(stat);
200 this->operator[](regioni)().readUpdateReconstruct(
false);
207 stat = stat > regionStat ? stat : regionStat;
212 this->operator[](regioni)().postReadUpdateReconstruct(stat);
217 this->operator[](regioni)().unconformReadUpdateReconstruct(stat);
228 this->operator[](regioni)().writeComplete(doSets);
237 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.
A class for handling file names.
readUpdateState
Enumeration defining the state of the mesh after a read update.
virtual ~multiDomainDecomposition()
Destructor.
void writeProcs(const bool doSets) const
Write the decomposed meshes and associated data.
multiDomainDecomposition(const processorRunTimes &procRunTimes, const fileName &meshPath, const wordList ®ionNames)
Construct from processor run times and region names.
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))