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 \
95 #define WARNRETURN __attribute__((warn_unused_result))
100 #define Op(opName, op) \
102 template<class T, class T1, class T2> \
107 T operator()(const T1& x, const T2& y) const WARNRETURN \
113 template<class T1, class T2> \
118 T1 operator()(const T1& x, const T2& y) const WARNRETURN \
129 T operator()(const T& x, const T& y) const WARNRETURN \
157 #define UOp(opName, op) \
164 T operator()(const T& x) const WARNRETURN \
bool equal(const T &s1, const T &s2)
void cmptMultiply(LagrangianPatchField< Type > &f, const LagrangianPatchField< Type > &f1, const LagrangianPatchField< Type > &f2)
void divide(LagrangianPatchField< Type > &f, const LagrangianPatchField< Type > &f1, const LagrangianPatchField< scalar > &f2)
void cmptDivide(LagrangianPatchField< Type > &f, const LagrangianPatchField< Type > &f1, const LagrangianPatchField< Type > &f2)
tmp< DimensionedField< scalar, GeoMesh, Field > > stabilise(const DimensionedField< scalar, GeoMesh, PrimitiveField > &dsf, const dimensioned< scalar > &ds)
Type maxMagSqr(const UList< Type > &f)
void mag(LagrangianPatchField< scalar > &f, const LagrangianPatchField< Type > &f1)
layerAndWeight min(const layerAndWeight &a, const layerAndWeight &b)
Scalar minMod(const Scalar s1, const Scalar s2)
void multiply(LagrangianPatchField< Type > &f, const LagrangianPatchField< scalar > &f1, const LagrangianPatchField< Type > &f2)
dimensioned< Type > sum(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
static bool less(const vector &x, const vector &y)
To compare normals.
void sqr(LagrangianPatchField< typename outerProduct< Type, Type >::type > &f, const LagrangianPatchField< Type > &f1)
Scalar cmptPow(const Scalar s1, const Scalar s2)
Type minMagSqr(const UList< Type > &f)
void magSqr(LagrangianPatchField< scalar > &f, const LagrangianPatchField< Type > &f1)