Go to the documentation of this file.
38 const UList<Type>&
field,
43 for (Type val :
field)
50 for (
direction d=0; d < pTraits<Type>::nComponents; ++d)
52 const direction cmpt = ensightPTraits<Type>::componentOrder[d];
83 if (Pstream::parRun())
85 procAddr.reset(UPstream::listGatherValues<label>(
field.size()));
93 if (Pstream::master())
107 DynamicList<Type> recvData(procAddr.maxNonLocalSize());
109 for (
const label proci : procAddr.subProcs())
111 recvData.resize_nocopy(procAddr.localSize(proci));
114 UPstream::commsTypes::scheduled,
116 recvData.data_bytes(),
117 recvData.size_bytes()
139 UPstream::commsTypes::scheduled,
165 fieldObj.
readOpt(IOobject::READ_IF_PRESENT);
List< label > labelList
A List of labels.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
void component(FieldField< Field, typename FieldField< Field, Type >::cmptType > &sf, const FieldField< Field, Type > &f, const direction d)
bool exists(const fileName &name, const bool checkGzip=true, const bool followLink=true)
static Ostream & output(Ostream &os, const IntRange< T > &range)
A primitive field of type <T> with automated input and output.
T returnReduce(const T &Value, const BinaryOp &bop, const int tag=Pstream::msgType(), const label comm=UPstream::worldComm)
static constexpr const zero Zero
A class representing the concept of 1 (one) that can be used to avoid manipulating objects known to b...
bool writeCloudField(const IOField< Type > &field, ensightFile &os)
OBJstream os(runTime.globalPath()/outputName)
Ensight output with specialized write() for strings, integers and floats. Correctly handles binary wr...
Calculates a unique integer (label so might not have enough room - 2G max) for processor + local inde...
void reset(const label localSize)
readOption readOpt() const noexcept
labelRange subProcs() const noexcept
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
unsigned int count(const UList< bool > &bools, const bool val=true)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
label maxNonLocalSize() const
const dimensionedScalar e
A collection of functions for writing clouds as ensight file content.
void write(vtk::formatter &fmt, const Type &val, const label n=1)
void resize_nocopy(const label len)
label writeCloudFieldContent(ensightFile &os, const UList< Type > &fld, label count=0)