34 #ifndef NEKTAR_LIB_MULTIREGIONS_GLOBALLINSYSITERATIVESTATICCOND_H
35 #define NEKTAR_LIB_MULTIREGIONS_GLOBALLINSYSITERATIVESTATICCOND_H
45 namespace MultiRegions
49 class GlobalLinSysIterativeStaticCond;
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);
#define MULTI_REGIONS_EXPORT
General purpose memory allocation routines with the ability to allocate from thread specific memory p...
static GlobalLinSysSharedPtr create(const GlobalLinSysKey &pLinSysKey, const std::weak_ptr< ExpList > &pExpList, const std::shared_ptr< AssemblyMap > &pLocToGloMap)
Creates an instance of this class.
virtual void v_InitObject()
void v_PreSolve(int scLevel, Array< OneD, NekDouble > &F_bnd)
std::vector< const double * > m_denseBlocks
Vector of pointers to local matrix data.
virtual void v_CoeffsBwdTransform(Array< OneD, NekDouble > &pInOut)
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)
virtual void v_DoMatrixMultiply(const Array< OneD, NekDouble > &pInput, Array< OneD, NekDouble > &pOutput)
Perform a Shur-complement matrix multiply operation.
std::vector< double > m_storage
Dense storage for block 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.
void PrepareLocalSchurComplement()
Prepares local representation of Schur complement stored as a sparse block-diagonal matrix.
virtual ~GlobalLinSysIterativeStaticCond()
virtual void v_BasisFwdTransform(Array< OneD, NekDouble > &pInOut)
Array< OneD, unsigned int > m_rows
Ranks of local matrices.
virtual DNekScalBlkMatSharedPtr v_GetStaticCondBlock(unsigned int n)
Retrieves a the static condensation block matrices from n-th expansion using the matrix key provided ...
void v_AssembleSchurComplement(const std::shared_ptr< AssemblyMap > locToGloMap)
Assemble the Schur complement matrix.
Array< OneD, NekDouble > m_scale
Scaling factors for local matrices.
DNekSmvBsrDiagBlkMatSharedPtr m_sparseSchurCompl
Sparse representation of Schur complement matrix at this level.
static std::string className
Name of class.
static std::string storagelookupIds[]
static std::string className2
virtual void v_CoeffsFwdTransform(const Array< OneD, NekDouble > &pInput, Array< OneD, NekDouble > &pOutput)
static std::string storagedef
Utility strings.
std::shared_ptr< DNekSmvBsrDiagBlkMat > DNekSmvBsrDiagBlkMatSharedPtr
virtual void v_UniqueMap()
NekSparseDiagBlkMatrix< StorageSmvBsr< NekDouble > > DNekSmvBsrDiagBlkMat
Describe a linear system.
std::shared_ptr< GlobalLinSys > GlobalLinSysSharedPtr
Pointer to a GlobalLinSys object.
const char *const LocalMatrixStorageStrategyMap[]
LocalMatrixStorageStrategy
std::shared_ptr< GlobalLinSysStaticCond > GlobalLinSysStaticCondSharedPtr
std::shared_ptr< GlobalLinSysIterativeStaticCond > GlobalLinSysIterativeStaticCondSharedPtr
std::shared_ptr< Preconditioner > PreconditionerSharedPtr
The above copyright notice and this permission notice shall be included.
std::shared_ptr< DNekScalBlkMat > DNekScalBlkMatSharedPtr