37 const label nTotParcels
47 std::is_same_v<label, cmptType>
48 || std::is_floating_point_v<cmptType>
50 "Label and Floating-point vector space only" 70 for (
const word& fieldName : fieldNames)
77 if constexpr (std::is_same_v<label, cmptType>)
79 const uint64_t payLoad =
80 vtk::sizeofData<label, nCmpt>(nTotParcels);
82 format().beginDataArray<label, nCmpt>(fieldName);
83 format().writeSize(payLoad);
87 const uint64_t payLoad =
88 vtk::sizeofData<float, nCmpt>(nTotParcels);
90 format().beginDataArray<float, nCmpt>(fieldName);
91 format().writeSize(payLoad);
void size(const label n)
Older name for setAddressableSize.
wordList names() const
The unsorted names of all objects.
A traits class, which is primarily used for primitives and vector-space.
const Type * findObject(const word &name, const bool recursive=false) const
Return const pointer to the object of the given Type.
bitSet parcelAddr_
The filtered parcel addressing. Eg, for the current cloud.
List< T > values(const HashTable< T, Key, Hash > &tbl, const bool doSort=false)
List of values from HashTable, optionally sorted.
A class for handling words, derived from Foam::string.
void sort(UList< T > &list)
Sort the list.
List helper to append y unique elements onto the end of x.
word format(conversionProperties.get< word >("format"))
static void combineReduce(T &value, CombineOp cop, const int tag=UPstream::msgType(), const int communicator=UPstream::worldComm)
Reduce inplace (cf. MPI Allreduce) applying cop to inplace combine value from different processors...
static bool master(const label communicator=worldComm)
True if process corresponds to the master rank in the communicator.
void writeListParallel(vtk::formatter &fmt, const UList< Type > &values)
Write a list of values.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
Registry of regIOobjects.
A primitive field of type <T> with automated input and output.
virtual const objectRegistry & obr() const
The region or sub-region registry being used.
static const List< T > & null() noexcept
Return a null List (reference to a nullObject). Behaves like an empty List.