37 bool hasPointData =
false;
44 hasPointData = tvar().isPointData();
50 const auto& var = tvar.
cref();
53 const label len = (hasPointData ? this->
pointSize() : this->
size());
64 <<
"Variable " <<
name 65 <<
" is nonuniform and does not fit the size" 66 <<
". Using average" <<
endl;
void size(const label n)
Older name for setAddressableSize.
virtual bool hasVariable(const word &name) const
True if named variable exists.
virtual label pointSize() const
The point field size for the expression.
Ostream & endl(Ostream &os)
Add newline and flush stream.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
const T & cref() const
Return const reference to the object or to the contents of a (non-null) managed pointer.
A class for managing references or pointers (no reference counting)
virtual label size() const
The natural field size for the expression.
bool returnReduceAnd(const bool value, const label comm=UPstream::worldComm)
Perform logical (and) MPI Allreduce on a copy. Uses UPstream::reduceAnd.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
Generic templated field type.
A class for handling words, derived from Foam::string.
#define WarningInFunction
Report a warning using Foam::Warning.
Type gAverage(const FieldField< Field, Type > &f)
tmp< Field< Type > > getField(const word &fieldName) const
Return named field (variable) if available.
A class for managing temporary objects.
virtual exprResult & variable(const word &name)
Non-const access to the named variable (sub-classes only)