Loading...
Searching...
No Matches
scalarDivideOp< T, T2 > Struct Template Reference

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

#include <scalarOps.H>

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 59 of file scalarOps.H.

Member Function Documentation

◆ operator()()

template<class T, class T2 = Foam::scalar>
T operator() ( const T & x,
const T2 & y ) const
inline

Definition at line 61 of file scalarOps.H.

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

Here is the call graph for this function:

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