37 #ifndef Foam_parFaFieldDistributorCache_H 38 #define Foam_parFaFieldDistributorCache_H 55 class parFaFieldDistributorCache
60 #define declareField(Type) \ 61 PtrList<GeometricField<Type, faPatchField, areaMesh>> Type##AreaFields_; \ 62 PtrList<GeometricField<Type, faePatchField, edgeMesh>> Type##EdgeFields_; 75 template<
class BoolListType>
78 const Time& baseRunTime,
79 const fileName& proc0CaseName,
82 const BoolListType& areaMeshOnProc,
83 const refPtr<fileOperation>& readHandler,
84 const fileName& areaMeshInstance,
109 void info(Ostream& os)
const;
114 const Time& baseRunTime,
115 const fileName& proc0CaseName,
117 const bool decompose,
119 const bitSet& areaMeshOnProc,
120 const refPtr<fileOperation>& readHandler,
121 const fileName& areaMeshInstance,
128 const Time& baseRunTime,
129 const fileName& proc0CaseName,
131 const bool decompose,
134 const refPtr<fileOperation>& readHandler,
135 const fileName& areaMeshInstance,
void redistributeAndWrite(const faMeshDistributor &distributor)
Redistribute and write all cached area, edge fields.
UList< bool > boolUList
A UList of bools.
parFaFieldDistributorCache()=default
Default construct.
void read(const Time &baseRunTime, const fileName &proc0CaseName, const bool decompose, const bitSet &areaMeshOnProc, const refPtr< fileOperation > &readHandler, const fileName &areaMeshInstance, faMesh &mesh)
Read distributed fields.
bool empty() const
Nothing in the cache.
Forwards for edge field types.
SymmTensor< scalar > symmTensor
SymmTensor of scalars, i.e. SymmTensor<scalar>.
#define declareField(Type)
void info(Ostream &os) const
Report names of cached fields.
void operator=(const parFaFieldDistributorCache &)=delete
No copy assignment.
SphericalTensor< scalar > sphericalTensor
SphericalTensor of scalars, i.e. SphericalTensor<scalar>.
Forwards and collection of common area field types.