chombo-discharge
Functions
PolyUtils Namespace Reference

Agglomeration class for various useful polynomial routines. More...

Functions

RealVect brentRootFinder (const RefCountedPtr< BaseIF > &a_impFunc, const RealVect &a_point1, const RealVect &a_point2)
 Compute the root of a function between two points. This is a 1D problem along the line. More...
 

Detailed Description

Agglomeration class for various useful polynomial routines.

Function Documentation

◆ brentRootFinder()

RealVect PolyUtils::brentRootFinder ( const RefCountedPtr< BaseIF > &  a_impFunc,
const RealVect &  a_point1,
const RealVect &  a_point2 
)

Compute the root of a function between two points. This is a 1D problem along the line.

Parameters
[in]a_impFuncImplicit function
[in]a_point1First end-point
[in]a_point2Other end-point
Note
The root MUST be bracketed, i.e. f(x1)*f(x2) < 0.0. Anything else is an error.