Chombo + EB  3.2
Public Member Functions | Private Attributes | List of all members
EBSimpleSolver Class Reference

#include <EBSimpleSolver.H>

Inheritance diagram for EBSimpleSolver:
Inheritance graph

Public Member Functions

 EBSimpleSolver ()
virtual ~EBSimpleSolver ()
virtual void setHomogeneous (bool a_homogeneous)
virtual void define (LinearOp< LevelData< EBCellFAB > > *a_operator, bool a_homogeneous)
virtual void setNumSmooths (const int &a_numSmooths)
virtual void solve (LevelData< EBCellFAB > &a_phi, const LevelData< EBCellFAB > &a_rhs)
- Public Member Functions inherited from LinearSolver< LevelData< EBCellFAB > >
virtual ~LinearSolver ()
virtual void setConvergenceMetrics (Real a_metric, Real a_tolerance)
 Set a convergence metric, along with solver tolerance, if desired. More...

Private Attributes

bool m_isDefined
MGLevelOp< LevelData< EBCellFAB > > * m_operator
bool m_homogeneous
int m_numSmooths

Constructor & Destructor Documentation

◆ EBSimpleSolver()

EBSimpleSolver::EBSimpleSolver ( )

◆ ~EBSimpleSolver()

virtual EBSimpleSolver::~EBSimpleSolver ( )

Member Function Documentation

◆ setHomogeneous()

virtual void EBSimpleSolver::setHomogeneous ( bool  a_homogeneous)

reset whether the solver is homogeneous.

Implements LinearSolver< LevelData< EBCellFAB > >.

◆ define()

virtual void EBSimpleSolver::define ( LinearOp< LevelData< EBCellFAB > > *  a_operator,
bool  a_homogeneous 

Define the operator and whether it is a homogeneous solver or not. The LinearSolver does not take over ownership of this a_operator object. It does not call delete on it when the LinearSolver is deleted. It is meant to be like a late-binding reference. If you created a_operator with new, you should call delete on it after LinearSolver is deleted if you want to avoid memory leaks.

Implements LinearSolver< LevelData< EBCellFAB > >.

◆ setNumSmooths()

virtual void EBSimpleSolver::setNumSmooths ( const int &  a_numSmooths)

◆ solve()

virtual void EBSimpleSolver::solve ( LevelData< EBCellFAB > &  a_phi,
const LevelData< EBCellFAB > &  a_rhs 

Solve L(phi) = rhs (phi = L^-1 (rhs)).

Implements LinearSolver< LevelData< EBCellFAB > >.

Member Data Documentation

◆ m_isDefined

bool EBSimpleSolver::m_isDefined

◆ m_operator

MGLevelOp<LevelData<EBCellFAB> >* EBSimpleSolver::m_operator

◆ m_homogeneous

bool EBSimpleSolver::m_homogeneous

◆ m_numSmooths

int EBSimpleSolver::m_numSmooths

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