40 class pointFieldDecomposer::fieldsCache::privateCache
45 #define declareField(Type) \ 46 PtrList<GeometricField<Type, pointPatchField, pointMesh>> Type##Fields_; 60 #define doLocalCode(Type) \ 62 count += Type##Fields_.size(); \ 80 #define doLocalCode(Type) \ 82 fieldsDistributor::readFields \ 100 template<
class GeoField>
129 #define doLocalCode(Type) \ 131 decompose(decomposer, Type##Fields_, report); \ 166 return (!cache_ || cache_->empty());
172 return (cache_ ? cache_->size() : label(0));
190 cache_->readAll(
mesh, objects);
203 cache_->decomposeAll(decomposer, report);
bool empty() const
No fields.
fieldsCache()
Default construct.
List< word > names(const UPtrList< T > &list, const UnaryMatchPredicate &matcher)
List of names generated by calling name() for each list item and filtered for matches.
bool empty() const noexcept
List of IOobjects with searching and retrieving facilities. Implemented as a HashTable, so the various sorted methods should be used if traversing in parallel.
static void decompose(const pointFieldDecomposer &decomposer, const PtrList< GeoField > &fields, bool report)
constexpr char nl
The newline '\n' character (0x0a)
A traits class, which is primarily used for primitives and vector-space.
#define declareField(Type)
void decomposeAll(const pointFieldDecomposer &decomposer, bool report) const
Functions to operate on Pointer Lists.
void readAllFields(const pointMesh &mesh, const IOobjectList &objects)
Read all fields given mesh and objects.
multivariateSurfaceInterpolationScheme< scalar >::fieldTable fields
label size() const noexcept
Mesh representing a set of points created from polyMesh.
unsigned int count(const UList< bool > &bools, const bool val=true)
Count number of 'true' entries.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
void decomposeAllFields(const pointFieldDecomposer &decomposer, bool report=false) const
Decompose and write all fields.
void readAll(const pointMesh &mesh, const IOobjectList &objects)
#define doLocalCode(Type)
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers...
label size() const
Total number of fields.
messageStream Info
Information stream (stdout output on master, null elsewhere)
Tensor of scalars, i.e. Tensor<scalar>.
~fieldsCache()
Destructor.
FlatOutput::OutputAdaptor< Container, Delimiters > flatOutput(const Container &obj, Delimiters delim)
Global flatOutput() function with specified output delimiters.
void decomposeFields(const PtrList< GeoField > &fields) const
Decompose list of fields.