scalarDivideOp< T, T2 > Struct Template Reference

Scalar division with divide-by-zero protection. More...

Public Member Functions

T operator() (const T &x, const T2 &y) const
 

Detailed Description

template<class T, class T2 = Foam::scalar>
struct Foam::scalarDivideOp< T, T2 >

Scalar division with divide-by-zero protection.

Uses stabilise, but could also handle as per modulo and return zero

Definition at line 60 of file scalarOps.H.

Member Function Documentation

◆ operator()()

T operator() ( const T x,
const T2 &  y 
) const
inline

Definition at line 62 of file scalarOps.H.

References Foam::stabilise(), x, and y.

Here is the call graph for this function:

The documentation for this struct was generated from the following file: