Chombo + EB + MF  3.2
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
PetscCompGridVTO Class Reference

#include <PetscCompGridVTO.H>

Inheritance diagram for PetscCompGridVTO:
Inheritance graph
[legend]

Public Member Functions

virtual ~PetscCompGridVTO ()
 Destructor. More...
 
 PetscCompGridVTO (Real a_al=0., Real a_beta=1.0)
 Base class constructor. Called by all subclass constructors. More...
 
virtual void clean ()
 
void defineCoefs (Real a_alpha, Real a_beta, Vector< RefCountedPtr< LevelData< FluxBox > > > &a_mu, Vector< RefCountedPtr< LevelData< FluxBox > > > &a_lambda, Vector< RefCountedPtr< LevelData< FArrayBox > > > &a_a)
 
virtual IntVect getGhostVect () const
 
Real getAlpha () const
 
Real getBeta () const
 
void setAlpha (Real a_b)
 
void setBeta (Real a_b)
 
- Public Member Functions inherited from PetscCompGrid
virtual ~PetscCompGrid ()
 Destructor. More...
 
 PetscCompGrid (int a_dof)
 Base class constructor. Called by all subclass constructors. More...
 
virtual void define (const ProblemDomain &a_cdomain, Vector< DisjointBoxLayout > &a_grids, Vector< int > &a_refratios, BCHolder a_bc, const RealVect &a_cdx, int a_numLevels=-1, int a_ibase=0)
 
Mat getMatrix () const
 
Mat getPMatrix () const
 
void setMatlab (bool b=true)
 
void setRepartition (bool b=true)
 
void setVerbose (int a_v)
 
void setAverageFineSolutionToCoarse (bool b=true)
 
PetscErrorCode createMatrix (int a_makePmat=0)
 
PetscErrorCode putChomboInPetsc (const Vector< LevelData< FArrayBox > * > &rhs, Vec b) const
 
PetscErrorCode putPetscInChombo (Vec b, Vector< LevelData< FArrayBox > * > &rhs) const
 
virtual void addExtraCovered (GID_type, int, const DataIndex &, BaseFab< PetscInt > &)
 

Protected Member Functions

virtual void createOpStencil (IntVect, int, const DataIndex &, StencilTensor &)
 
virtual void applyBCs (IntVect, int, const DataIndex &, Box, StencilTensor &)
 
- Protected Member Functions inherited from PetscCompGrid
virtual void InterpToFine (IntVect, int, const DataIndex &, StencilTensor &)
 
virtual void InterpToCoarse (IntVect, int, const DataIndex &, StencilTensor &)
 
IntVect getCFStencil (const ProblemDomain &a_cdom, const IntVect a_ivc)
 
PetscErrorCode AddStencilToMat (IntVect, int, const DataIndex &, StencilTensor &, Mat)
 
void NodeDefine (StencilNode &a_node, IntVect a_iv, int a_lev, Real a_val)
 
void setCFCoverMaps (int a_nlev)
 
void setCoverMaps (int a_nlev)
 
PetscErrorCode permuteDataAndMaps (Vector< StencilTensor > &patchStencil)
 

Protected Attributes

Real m_alpha
 
Real m_beta
 
Vector< RefCountedPtr< LevelData< FluxBox > > > m_eta
 
Vector< RefCountedPtr< LevelData< FluxBox > > > m_lamb
 
Vector< RefCountedPtr< LevelData< FArrayBox > > > m_a
 
- Protected Attributes inherited from PetscCompGrid
Vector< ProblemDomainm_domains
 
Vector< DisjointBoxLayoutm_grids
 
Vector< int > m_refRatios
 
Vector< RealVectm_dxs
 
Vector< RefCountedPtr< LevelData< BaseFab< PetscInt > > > > m_crsSupportGIDs
 
Vector< RefCountedPtr< LevelData< BaseFab< PetscInt > > > > m_fineCoverGIDs
 
Mat m_mat
 
Mat m_Pmat
 
BCHolder m_bc
 
int m_CFStencilRad
 
BaseFab< FourthOrderInterpStencil * > m_FCStencils
 
bool m_writeMatlab
 
bool m_averageFineSolutionToCoarse
 
int m_verbose
 
const int m_dof
 

Additional Inherited Members

- Public Attributes inherited from PetscCompGrid
Vector< RefCountedPtr< LevelData< BaseFab< PetscInt > > > > m_GIDs
 
PetscInt m_gid0
 
PetscInt m_nlocrealpatches
 
PetscInt m_patchid0
 
int m_num_extra_nnz
 
PetscBool m_repartition
 

Detailed Description

This base class organizes the construction of a PETSc matrix, and solve with an AMR

Constructor & Destructor Documentation

◆ ~PetscCompGridVTO()

virtual PetscCompGridVTO::~PetscCompGridVTO ( )
inlinevirtual

Destructor.

References clean().

◆ PetscCompGridVTO()

PetscCompGridVTO::PetscCompGridVTO ( Real  a_al = 0.,
Real  a_beta = 1.0 
)
inline

Base class constructor. Called by all subclass constructors.

References clean().

Member Function Documentation

◆ clean()

virtual void PetscCompGridVTO::clean ( )
virtual

Reimplemented from PetscCompGrid.

Referenced by PetscCompGridVTO(), and ~PetscCompGridVTO().

◆ defineCoefs()

void PetscCompGridVTO::defineCoefs ( Real  a_alpha,
Real  a_beta,
Vector< RefCountedPtr< LevelData< FluxBox > > > &  a_mu,
Vector< RefCountedPtr< LevelData< FluxBox > > > &  a_lambda,
Vector< RefCountedPtr< LevelData< FArrayBox > > > &  a_a 
)
inline

References m_a, m_alpha, m_beta, m_eta, and m_lamb.

◆ getGhostVect()

virtual IntVect PetscCompGridVTO::getGhostVect ( ) const
inlinevirtual

Implements PetscCompGrid.

References IntVect::Unit.

◆ getAlpha()

Real PetscCompGridVTO::getAlpha ( ) const
inline

References m_alpha.

◆ getBeta()

Real PetscCompGridVTO::getBeta ( ) const
inline

References m_beta.

◆ setAlpha()

void PetscCompGridVTO::setAlpha ( Real  a_b)
inline

References m_alpha.

◆ setBeta()

void PetscCompGridVTO::setBeta ( Real  a_b)
inline

References applyBCs(), createOpStencil(), and m_beta.

◆ createOpStencil()

virtual void PetscCompGridVTO::createOpStencil ( IntVect  ,
int  ,
const DataIndex ,
StencilTensor  
)
protectedvirtual

Implements PetscCompGrid.

Referenced by setBeta().

◆ applyBCs()

virtual void PetscCompGridVTO::applyBCs ( IntVect  ,
int  ,
const DataIndex ,
Box  ,
StencilTensor  
)
protectedvirtual

Reimplemented from PetscCompGrid.

Referenced by setBeta().

Member Data Documentation

◆ m_alpha

Real PetscCompGridVTO::m_alpha
protected

Referenced by defineCoefs(), getAlpha(), and setAlpha().

◆ m_beta

Real PetscCompGridVTO::m_beta
protected

Referenced by defineCoefs(), getBeta(), and setBeta().

◆ m_eta

Vector<RefCountedPtr<LevelData<FluxBox> > > PetscCompGridVTO::m_eta
protected

Referenced by defineCoefs().

◆ m_lamb

Vector<RefCountedPtr<LevelData<FluxBox> > > PetscCompGridVTO::m_lamb
protected

Referenced by defineCoefs().

◆ m_a

Vector<RefCountedPtr<LevelData<FArrayBox> > > PetscCompGridVTO::m_a
protected

Referenced by defineCoefs().


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