|
Chombo + EB + MF
3.2
|
#include <PetscCompGrid.H>

Public Member Functions | |
| 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) |
| virtual void | clean () |
| 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 IntVect | getGhostVect () const =0 |
| virtual void | addExtraCovered (GID_type, int, const DataIndex &, BaseFab< PetscInt > &) |
Public Attributes | |
| Vector< RefCountedPtr< LevelData< BaseFab< PetscInt > > > > | m_GIDs |
| PetscInt | m_gid0 |
| PetscInt | m_nlocrealpatches |
| PetscInt | m_patchid0 |
| int | m_num_extra_nnz |
| PetscBool | m_repartition |
Protected Member Functions | |
| virtual void | createOpStencil (IntVect, int, const DataIndex &, StencilTensor &)=0 |
| 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 | |
| Vector< ProblemDomain > | m_domains |
| Vector< DisjointBoxLayout > | m_grids |
| Vector< int > | m_refRatios |
| Vector< RealVect > | m_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 |
Private Member Functions | |
| void | operator= (const PetscCompGrid &a_input) |
| PetscCompGrid (const PetscCompGrid &a_input) | |
Private Attributes | |
| PetscInt | m_patch_size |
| VecScatter | m_from_petscscat |
| Vec | m_origvec |
This base class organizes the construction of a PETSc matrix, with an AMR hierarchy
|
virtual |
Destructor.
|
inline |
|
inlineprivate |
References MayDay::Error().
|
virtual |
Referenced by CompBC::CompBC(), and PetscCompGrid().
|
virtual |
Reimplemented in PetscCompGridVTO, and PetscCompGridPois.
Referenced by PetscCompGrid().
|
inline |
References m_mat.
|
inline |
References m_Pmat.
|
inline |
References m_writeMatlab.
|
inline |
References m_repartition.
|
inline |
References m_verbose.
|
inline |
References createMatrix(), getGhostVect(), m_averageFineSolutionToCoarse, putChomboInPetsc(), and putPetscInChombo().
| PetscErrorCode PetscCompGrid::createMatrix | ( | int | a_makePmat = 0 | ) |
Referenced by setAverageFineSolutionToCoarse().
| PetscErrorCode PetscCompGrid::putChomboInPetsc | ( | const Vector< LevelData< FArrayBox > * > & | rhs, |
| Vec | b | ||
| ) | const |
Referenced by setAverageFineSolutionToCoarse().
| PetscErrorCode PetscCompGrid::putPetscInChombo | ( | Vec | b, |
| Vector< LevelData< FArrayBox > * > & | rhs | ||
| ) | const |
Referenced by setAverageFineSolutionToCoarse().
|
pure virtual |
Implemented in PetscCompGridVTO, and PetscCompGridPois.
Referenced by setAverageFineSolutionToCoarse().
|
inlinevirtual |
References AddStencilToMat(), applyBCs(), createOpStencil(), getCFStencil(), InterpToCoarse(), and InterpToFine().
|
protectedpure virtual |
Implemented in PetscCompGridVTO, and PetscCompGridPois.
Referenced by addExtraCovered().
|
protectedvirtual |
Reimplemented in PetscCompGridVTO.
Referenced by addExtraCovered().
|
protectedvirtual |
Referenced by addExtraCovered().
|
protectedvirtual |
Referenced by addExtraCovered().
|
protected |
Referenced by addExtraCovered().
|
protected |
Referenced by addExtraCovered().
|
inlineprotected |
References permuteDataAndMaps(), setCFCoverMaps(), and setCoverMaps().
|
protected |
Referenced by NodeDefine().
|
protected |
Referenced by NodeDefine().
|
protected |
Referenced by NodeDefine().
|
inlineprivate |
References MayDay::Error().
|
protected |
|
protected |
|
protected |
| Vector<RefCountedPtr<LevelData<BaseFab<PetscInt> > > > PetscCompGrid::m_GIDs |
|
protected |
|
protected |
| PetscInt PetscCompGrid::m_gid0 |
| PetscInt PetscCompGrid::m_nlocrealpatches |
| PetscInt PetscCompGrid::m_patchid0 |
|
protected |
Referenced by getMatrix().
|
protected |
Referenced by getPMatrix().
|
protected |
|
protected |
|
protected |
|
protected |
Referenced by setMatlab().
|
protected |
Referenced by setAverageFineSolutionToCoarse().
|
protected |
Referenced by setVerbose().
|
protected |
| int PetscCompGrid::m_num_extra_nnz |
| PetscBool PetscCompGrid::m_repartition |
Referenced by setRepartition().
|
private |
|
private |
|
private |
1.8.13