46 #define EqOp(opName, op) \ 48 template<class T1, class T2> \ 53 void operator()(T1& x, const T2& y) const \ 64 void operator()(T& x, const T& y) const \ 96 #define WARNRETURN __attribute__((warn_unused_result)) 101 #define Op(opName, op) \ 103 template<class T, class T1, class T2> \ 108 T operator()(const T1& x, const T2& y) const WARNRETURN \ 114 template<class T1, class T2> \ 119 T1 operator()(const T1& x, const T2& y) const WARNRETURN \ 130 T operator()(const T& x, const T& y) const WARNRETURN \ 137 #define weightedOp(opName, op) \ 139 template<class Type, class CombineOp> \ 140 class opName##WeightedOp \ 142 const CombineOp& cop_; \ 146 opName##WeightedOp(const CombineOp& cop) \ 156 const scalar weight \ void divide(FieldField< Field, Type > &f, const FieldField< Field, Type > &f1, const FieldField< Field, scalar > &f2)
void multiply(FieldField< Field, Type > &f, const FieldField< Field, Type > &f1, const FieldField< Field, scalar > &f2)
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
Type minMagSqr(const UList< Type > &f)
dimensionedSymmTensor sqr(const dimensionedVector &dv)
static bool less(const vector &x, const vector &y)
To compare normals.
dimensioned< Type > cmptDivide(const dimensioned< Type > &, const dimensioned< Type > &)
dimensioned< Type > sum(const DimensionedField< Type, GeoMesh > &df)
Scalar cmptPow(const Scalar s1, const Scalar s2)
dimensioned< Type > cmptMultiply(const dimensioned< Type > &, const dimensioned< Type > &)
dimensioned< scalar > magSqr(const dimensioned< Type > &)
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
Scalar minMod(const Scalar s1, const Scalar s2)
tmp< DimensionedField< scalar, GeoMesh > > stabilise(const DimensionedField< scalar, GeoMesh > &dsf, const dimensioned< scalar > &ds)
Type maxMagSqr(const UList< Type > &f)
#define weightedOp(opName, op)
dimensioned< scalar > mag(const dimensioned< Type > &)