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

#include <PetscCompGridPois.H>

Inheritance diagram for PetscCompGridPois:
Inheritance graph

Public Member Functions

 PetscCompGridPois (Real a_al=0., Real a_be=-1.0, int a_order=2)
 Base class constructor. Called by all subclass constructors. More...
virtual void clean ()
virtual ~PetscCompGridPois ()
 Destructor. More...
bool isCornerStencil () const
void setCornerStencil (bool a_b=true)
virtual IntVect getGhostVect () const
Real getAlpha () const
Real getBeta () const
void setAlpha (Real a_b)
void setBeta (Real a_b)
int getOrder () const
void setOrder (int 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 &)
- Protected Member Functions inherited from PetscCompGrid
virtual void applyBCs (IntVect, int, const DataIndex &, Box, StencilTensor &)
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
int m_order
bool m_cornerStencil
- 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 hierarchy

Constructor & Destructor Documentation

◆ PetscCompGridPois()

PetscCompGridPois::PetscCompGridPois ( Real  a_al = 0.,
Real  a_be = -1.0,
int  a_order = 2 

Base class constructor. Called by all subclass constructors.

References clean().

◆ ~PetscCompGridPois()

virtual PetscCompGridPois::~PetscCompGridPois ( )


References clean().

Member Function Documentation

◆ clean()

virtual void PetscCompGridPois::clean ( )

Reimplemented from PetscCompGrid.

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

◆ isCornerStencil()

bool PetscCompGridPois::isCornerStencil ( ) const

References m_cornerStencil.

◆ setCornerStencil()

void PetscCompGridPois::setCornerStencil ( bool  a_b = true)

References m_cornerStencil.

◆ getGhostVect()

virtual IntVect PetscCompGridPois::getGhostVect ( ) const

Implements PetscCompGrid.

References m_order, and IntVect::Unit.

◆ getAlpha()

Real PetscCompGridPois::getAlpha ( ) const

References m_alpha.

◆ getBeta()

Real PetscCompGridPois::getBeta ( ) const

References m_beta.

◆ setAlpha()

void PetscCompGridPois::setAlpha ( Real  a_b)

References m_alpha.

◆ setBeta()

void PetscCompGridPois::setBeta ( Real  a_b)

References m_beta.

◆ getOrder()

int PetscCompGridPois::getOrder ( ) const

References m_order.

◆ setOrder()

void PetscCompGridPois::setOrder ( int  a_b)

References createOpStencil(), and m_order.

◆ createOpStencil()

virtual void PetscCompGridPois::createOpStencil ( IntVect  ,
int  ,
const DataIndex ,

Implements PetscCompGrid.

Referenced by setOrder().

Member Data Documentation

◆ m_alpha

Real PetscCompGridPois::m_alpha

Referenced by getAlpha(), and setAlpha().

◆ m_beta

Real PetscCompGridPois::m_beta

Referenced by getBeta(), and setBeta().

◆ m_order

int PetscCompGridPois::m_order

Referenced by getGhostVect(), getOrder(), and setOrder().

◆ m_cornerStencil

bool PetscCompGridPois::m_cornerStencil

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