34#ifndef NEKTAR_LIB_MULTIREGIONS_PRECONDITIONERLINEARWITHBLOCK_H
35#define NEKTAR_LIB_MULTIREGIONS_PRECONDITIONERLINEARWITHBLOCK_H
43class PreconditionerLinearWithBlock;
44typedef std::shared_ptr<PreconditionerLinearWithBlock>
52 const std::shared_ptr<GlobalLinSys> &plinsys,
53 const std::shared_ptr<AssemblyMap> &pLocToGloMap)
57 plinsys, pLocToGloMap);
66 const std::shared_ptr<GlobalLinSys> &plinsys,
82 const bool &isLocal =
false)
override;
#define MULTI_REGIONS_EXPORT
static std::shared_ptr< DataType > AllocateSharedPtr(const Args &...args)
Allocate a shared pointer from the memory pool.
void v_BuildPreconditioner() override
PreconditionerLinearWithBlock(const std::shared_ptr< GlobalLinSys > &plinsys, const AssemblyMapSharedPtr &pLocToGloMap)
void v_InitObject() override
PreconditionerSharedPtr m_linSpacePrecon
void v_DoPreconditioner(const Array< OneD, NekDouble > &pInput, Array< OneD, NekDouble > &pOutput, const bool &isLocal=false) override
Apply a preconditioner to the conjugate gradient method.
~PreconditionerLinearWithBlock() override
static PreconditionerSharedPtr create(const std::shared_ptr< GlobalLinSys > &plinsys, const std::shared_ptr< AssemblyMap > &pLocToGloMap)
Creates an instance of this class.
static std::string className
Name of class.
PreconditionerSharedPtr m_blockPrecon
std::shared_ptr< PreconditionerLinearWithBlock > PreconditionerLinearWithBlockSharedPtr
std::shared_ptr< Preconditioner > PreconditionerSharedPtr
std::shared_ptr< AssemblyMap > AssemblyMapSharedPtr