Chombo + EB  3.0
Public Member Functions | List of all members
PetscSolverFAB< T > Class Template Reference

#include <PetscSolver.H>

Inheritance diagram for PetscSolverFAB< T >:
Inheritance graph
[legend]

Public Member Functions

 PetscSolverFAB ()
 
BaseFab< Real > & getRegFab (LevelData< FArrayBox > &a_fab, DataIterator &dit)
 
const BaseFab< Real > & getRegFab (const LevelData< FArrayBox > &a_fab, DataIterator &dit) const
 
const BaseFab< Real > & getRegFab (const LevelData< FArrayBox > &a_fab, DataIterator &a_dit, Box &a_box) const
 
void defineData (LevelData< FArrayBox > &a_fab, const LevelData< FArrayBox > &a_phi)
 
- Public Member Functions inherited from PetscSolver< T >
 PetscSolver ()
 
virtual ~PetscSolver ()
 
void destroy ()
 
virtual void setHomogeneous (bool a_homogeneous)
 
virtual void define (LinearOp< T > *a_operator, bool a_homogeneous=false)
 
virtual void solve (T &a_phi, const T &a_rhs)
 
int solve_private (T &a_phi, const T &a_rhs)
 
Real computeResidual ()
 
int applyOp (T &a_phi, const T &a_rhs)
 
void setInitialGuessNonzero (bool b=true)
 
virtual int getNNZPerRow () const
 
virtual BaseFab< Real > & getRegFab (T &a_fab, DataIterator &dit)=0
 
virtual const BaseFab< Real > & getRegFab (const T &a_fab, DataIterator &dit) const =0
 
virtual const BaseFab< Real > & getRegFab (const T &a_fab, DataIterator &dit, Box &a_box) const =0
 
virtual void defineData (T &a_data, const T &a_template)=0
 
void setNull (bool n=true)
 
- Public Member Functions inherited from LinearSolver< T >
virtual ~LinearSolver ()
 
virtual void setConvergenceMetrics (Real a_metric, Real a_tolerance)
 Set a convergence metric, along with solver tolerance, if desired. More...
 

Additional Inherited Members

- Public Attributes inherited from PetscSolver< T >
bool m_homogeneous
 
Real m_dx
 
- Protected Member Functions inherited from PetscSolver< T >
virtual Real addBCdiagValue (const IntVect &a_iv, const IntVect &a_jv, const T &a_rhs, DataIterator dit, const Real coeff=1)
 
int resetOperator ()
 
virtual Real addBCrhsValue (const IntVect &a_iv, const T &a_phi, DataIterator dit, const Real &coeff=1)
 
int create_mat_vec (const T &a_phi)
 
int setup_solver (const T &a_phi)
 
- Protected Attributes inherited from PetscSolver< T >
bool m_null
 
bool m_nz_init_guess
 
m_gids
 
LevelData< BaseFab< bool > > m_bccode
 
int m_gid0
 

Constructor & Destructor Documentation

◆ PetscSolverFAB()

template<class T>
PetscSolverFAB< T >::PetscSolverFAB ( )
inline

Member Function Documentation

◆ getRegFab() [1/3]

template<class T>
BaseFab<Real>& PetscSolverFAB< T >::getRegFab ( LevelData< FArrayBox > &  a_fab,
DataIterator dit 
)
inline

◆ getRegFab() [2/3]

template<class T>
const BaseFab<Real>& PetscSolverFAB< T >::getRegFab ( const LevelData< FArrayBox > &  a_fab,
DataIterator dit 
) const
inline

◆ getRegFab() [3/3]

template<class T>
const BaseFab<Real>& PetscSolverFAB< T >::getRegFab ( const LevelData< FArrayBox > &  a_fab,
DataIterator a_dit,
Box a_box 
) const
inline

◆ defineData()

template<class T>
void PetscSolverFAB< T >::defineData ( LevelData< FArrayBox > &  a_fab,
const LevelData< FArrayBox > &  a_phi 
)
inline

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