#include <PetscSolver.H>
Public Member Functions | |
PetscSolverViscousTensor () | |
virtual void | define (LinearOp< T > *a_operator, bool a_homogeneous=true) |
virtual int | getNNZPerRow () const |
virtual int | formMatrix (Mat, const LevelData< FArrayBox > *=0, PetscInt my0=0, PetscInt nloc=0, PetscInt *d=0, PetscInt *o=0) |
void | define (Real alpha, Real beta, LevelData< FArrayBox > *a, LevelData< FluxBox > *eta, LevelData< FluxBox > *lam) |
Protected Attributes | |
Real | m_alpha |
Real | m_beta |
Real | m_dxCrse |
LevelData< FArrayBox > * | m_a |
LevelData< FluxBox > * | m_eta |
LevelData< FluxBox > * | m_lamb |
PetscSolverViscousTensor< T >::PetscSolverViscousTensor | ( | ) |
virtual void PetscSolverViscousTensor< T >::define | ( | LinearOp< T > * | a_operator, | |
bool | a_homogeneous = true | |||
) | [virtual] |
virtual int PetscSolverViscousTensor< T >::getNNZPerRow | ( | ) | const [inline, virtual] |
get an estimate of the number of nnz/row for matrix allocation
Reimplemented from PetscSolver< LevelData< FArrayBox > >.
virtual int PetscSolverViscousTensor< T >::formMatrix | ( | Mat | , | |
const LevelData< FArrayBox > * | = 0 , |
|||
PetscInt | my0 = 0 , |
|||
PetscInt | nloc = 0 , |
|||
PetscInt * | d = 0 , |
|||
PetscInt * | o = 0 | |||
) | [virtual] |
Implements PetscSolver< LevelData< FArrayBox > >.
Real PetscSolverViscousTensor< T >::m_alpha [protected] |
Referenced by PetscSolverViscousTensor< T >::define().
Real PetscSolverViscousTensor< T >::m_beta [protected] |
Referenced by PetscSolverViscousTensor< T >::define().
Real PetscSolverViscousTensor< T >::m_dxCrse [protected] |
LevelData<FArrayBox>* PetscSolverViscousTensor< T >::m_a [protected] |
Referenced by PetscSolverViscousTensor< T >::define().
LevelData<FluxBox>* PetscSolverViscousTensor< T >::m_eta [protected] |
Referenced by PetscSolverViscousTensor< T >::define().
LevelData<FluxBox>* PetscSolverViscousTensor< T >::m_lamb [protected] |
Referenced by PetscSolverViscousTensor< T >::define().