compareOp< Scalar > Struct Template Reference

Compare scalar values. More...

Public Member Functions

 compareOp (Scalar tol=ScalarVSMALL)
 Construct with specified tolerance (non-negative value) More...
 
Scalar operator() (const Scalar &a, const Scalar &b) const
 

Public Attributes

const Scalar tolerance
 

Detailed Description

template<>
struct Foam::compareOp< Scalar >

Compare scalar values.

Definition at line 449 of file Scalar.H.

Constructor & Destructor Documentation

◆ compareOp()

compareOp ( Scalar  tol = ScalarVSMALL)
inline

Construct with specified tolerance (non-negative value)

Definition at line 454 of file Scalar.H.

Member Function Documentation

◆ operator()()

Scalar operator() ( const Scalar a,
const Scalar b 
) const
inline

Definition at line 459 of file Scalar.H.

References Foam::constant::physicoChemical::b, and Foam::mag().

Here is the call graph for this function:

Member Data Documentation

◆ tolerance

const Scalar tolerance

Definition at line 451 of file Scalar.H.


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