34 #ifndef NEKTAR_LIB_MULTIREGIONS_GLOBALLINSYSITERATIVESTATICCOND_H 35 #define NEKTAR_LIB_MULTIREGIONS_GLOBALLINSYSITERATIVESTATICCOND_H 45 namespace MultiRegions
51 typedef std::shared_ptr<GlobalLinSysIterativeStaticCond>
77 typedef std::shared_ptr<DNekSmvBsrDiagBlkMat>
83 const std::weak_ptr<ExpList> &pExpList,
84 const std::shared_ptr<AssemblyMap> &pLocToGloMap)
88 AllocateSharedPtr(pLinSysKey, pExpList, pLocToGloMap);
100 const std::weak_ptr<ExpList> &pExpList,
101 const std::shared_ptr<AssemblyMap> &locToGloMap);
106 const std::weak_ptr<ExpList> &pExpList,
111 const std::shared_ptr<AssemblyMap> &locToGloMap,
120 const std::weak_ptr<ExpList> &pExpList,
125 const std::shared_ptr<AssemblyMap> &locToGloMap);
156 const std::shared_ptr<AssemblyMap> locToGloMap);
std::shared_ptr< GlobalLinSysStaticCond > GlobalLinSysStaticCondSharedPtr
virtual DNekScalBlkMatSharedPtr v_PreSolve(int scLevel, NekVector< NekDouble > &F_GlobBnd)
NekSparseDiagBlkMatrix< StorageSmvBsr< NekDouble > > DNekSmvBsrDiagBlkMat
General purpose memory allocation routines with the ability to allocate from thread specific memory p...
std::shared_ptr< DNekScalBlkMat > DNekScalBlkMatSharedPtr
std::vector< double > m_storage
Dense storage for block Schur complement matrix.
virtual void v_InitObject()
#define MULTI_REGIONS_EXPORT
std::shared_ptr< GlobalLinSys > GlobalLinSysSharedPtr
Pointer to a GlobalLinSys object.
virtual void v_DoMatrixMultiply(const Array< OneD, NekDouble > &pInput, Array< OneD, NekDouble > &pOutput)
Perform a Shur-complement matrix multiply operation.
virtual void v_BasisBwdTransform(Array< OneD, NekDouble > &pInOut)
virtual ~GlobalLinSysIterativeStaticCond()
std::shared_ptr< GlobalLinSysIterativeStaticCond > GlobalLinSysIterativeStaticCondSharedPtr
static std::string className
Name of class.
static std::string className2
const char *const LocalMatrixStorageStrategyMap[]
Array< OneD, NekDouble > m_scale
Scaling factors for local matrices.
static std::string storagelookupIds[]
virtual void v_UniqueMap()
Array< OneD, unsigned int > m_rows
Ranks of local matrices.
std::vector< const double * > m_denseBlocks
Vector of pointers to local matrix data.
void PrepareLocalSchurComplement()
Prepares local representation of Schur complement stored as a sparse block-diagonal matrix...
Describe a linear system.
virtual void v_BasisFwdTransform(Array< OneD, NekDouble > &pInOut, int offset)
LocalMatrixStorageStrategy
DNekSmvBsrDiagBlkMatSharedPtr m_sparseSchurCompl
Sparse representation of Schur complement matrix at this level.
virtual GlobalLinSysStaticCondSharedPtr v_Recurse(const GlobalLinSysKey &mkey, const std::weak_ptr< ExpList > &pExpList, const DNekScalBlkMatSharedPtr pSchurCompl, const DNekScalBlkMatSharedPtr pBinvD, const DNekScalBlkMatSharedPtr pC, const DNekScalBlkMatSharedPtr pInvD, const std::shared_ptr< AssemblyMap > &locToGloMap)
std::shared_ptr< DNekSmvBsrDiagBlkMat > DNekSmvBsrDiagBlkMatSharedPtr
static GlobalLinSysSharedPtr create(const GlobalLinSysKey &pLinSysKey, const std::weak_ptr< ExpList > &pExpList, const std::shared_ptr< AssemblyMap > &pLocToGloMap)
Creates an instance of this class.
std::shared_ptr< Preconditioner > PreconditionerSharedPtr
void v_AssembleSchurComplement(const std::shared_ptr< AssemblyMap > locToGloMap)
Assemble the Schur complement matrix.
GlobalLinSysIterativeStaticCond(const GlobalLinSysKey &mkey, const std::weak_ptr< ExpList > &pExpList, const std::shared_ptr< AssemblyMap > &locToGloMap)
Constructor for full direct matrix solve.
DNekScalBlkMatSharedPtr m_S1Blk
virtual DNekScalBlkMatSharedPtr v_GetStaticCondBlock(unsigned int n)
Retrieves a the static condensation block matrices from n-th expansion using the matrix key provided ...
static std::string storagedef
Utility strings.