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

#include <PetscSolver.H>

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

Public Member Functions

 PetscSolverPoisson ()
 
virtual void define (LinearOp< T > *a_operator, bool a_homogeneous=false)
 
- Public Member Functions inherited from PetscSolverFAB< T >
 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 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...
 

Public Attributes

Real m_alpha
 
Real m_beta
 
- Public Attributes inherited from PetscSolver< T >
bool m_homogeneous
 
Real m_dx
 

Additional Inherited Members

- 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

◆ PetscSolverPoisson()

template<class T >
PetscSolverPoisson< T >::PetscSolverPoisson ( )

Member Function Documentation

◆ define()

template<class T >
virtual void PetscSolverPoisson< T >::define ( LinearOp< T > *  a_operator,
bool  a_homogeneous = false 
)
virtual

Set Function F(u) = 0 and Jacobian dF(u)/du for nonlinear solves

Reimplemented from PetscSolver< T >.

Member Data Documentation

◆ m_alpha

template<class T >
Real PetscSolverPoisson< T >::m_alpha

◆ m_beta

template<class T >
Real PetscSolverPoisson< T >::m_beta

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