Go to the documentation of this file.
28 #include "primitiveMesh.H"
68 "pointProcAddressing",
102 "cellProcAddressing",
103 meshes_[procI].facesInstance(),
119 "boundaryProcAddressing",
120 meshes_[procI].facesInstance(),
141 databases_(databases),
142 meshes_(databases.
size()),
143 pointProcAddressing_(databases.
size()),
144 faceProcAddressing_(databases.
size()),
145 cellProcAddressing_(databases.
size()),
146 boundaryProcAddressing_(databases.
size())
178 else if (stat != procStat)
181 <<
"Processor " << procI
182 <<
" has a different polyMesh at time "
183 << databases_[procI].timeName()
184 <<
" compared to any previous processors." <<
nl
185 <<
"Please check time " << databases_[procI].timeName()
186 <<
" directories on all processors for consistent"
236 const vectorField& procPoints = procsPoints[procI];
240 const labelList& pointProcAddressingI = pointProcAddressing_[procI];
242 if (pointProcAddressingI.
size() != procPoints.size())
246 <<
" pointProcAddressingI:" << pointProcAddressingI.
size()
247 <<
" procPoints:" << procPoints.size()
251 forAll(pointProcAddressingI, pointI)
253 newPoints[pointProcAddressingI[pointI]] = procPoints[pointI];
PtrList< labelIOList > cellProcAddressing_
List of processor cell addressing lists.
PtrList< labelIOList > pointProcAddressing_
List of processor point addressing lists.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
A class for handling words, derived from string.
#define forAll(list, i)
Loop across all elements in list.
PtrList< Time > & databases_
Processor databases.
bool read(const char *, int32_t &)
static word meshSubDir
Return the mesh sub-directory name (usually "polyMesh")
virtual tmp< scalarField > movePoints(const pointField &)
Move points, returns volumes swept by faces in motion.
void reconstructPoints(fvMesh &)
Reconstruct point position after motion in parallel.
virtual bool write() const
Write mesh using IO settings from time.
PtrList< labelIOList > boundaryProcAddressing_
List of processor boundary addressing lists.
bool set(const label) const
Is element set.
Pre-declare SubField and related Field type.
PtrList< fvMesh > meshes_
List of processor meshes.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
Mesh data needed to do the Finite Volume discretisation.
errorManip< error > abort(error &err)
errorManipArg< error, int > exit(error &err, const int errNo=1)
fvMesh::readUpdateState readUpdate()
Update the meshes based on the mesh files saved in time directories.
readUpdateState
Enumeration defining the state of the mesh after a read update.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
PtrList< labelIOList > faceProcAddressing_
List of processor face addressing lists.
processorMeshes(const processorMeshes &)
Disallow default bitwise copy construct.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void read()
Read all meshes.
label size() const
Return the number of elements in the PtrList.
void size(const label)
Override size to be inconsistent with allocated storage.