34#ifndef NEKTAR_LIB_MULTIREGIONS_PRECONDITIONERDIAGONAL_H
35#define NEKTAR_LIB_MULTIREGIONS_PRECONDITIONERDIAGONAL_H
45class PreconditionerDiagonal;
53 const std::shared_ptr<GlobalLinSys> &plinsys,
54 const std::shared_ptr<AssemblyMap> &pLocToGloMap)
58 plinsys, pLocToGloMap);
68 const std::shared_ptr<GlobalLinSys> &plinsys,
83 const bool &IsLocal =
false)
override;
93 static std::string
def;
104 const std::shared_ptr<GlobalLinSys> &plinsys,
105 const std::shared_ptr<AssemblyMap> &pLocToGloMap)
118 const std::shared_ptr<GlobalLinSys> &plinsys,
130 const bool &isLocal =
false)
override;
147 const std::shared_ptr<GlobalLinSys> &plinsys,
148 const std::shared_ptr<AssemblyMap> &pLocToGloMap)
152 plinsys, pLocToGloMap);
162 const std::shared_ptr<GlobalLinSys> &plinsys,
177 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.
virtual void v_BuildPreconditioner() override
void StaticCondDiagonalPreconditionerSum(void)
virtual ~PreconditionerDiagonal()
static PreconditionerSharedPtr create(const std::shared_ptr< GlobalLinSys > &plinsys, const std::shared_ptr< AssemblyMap > &pLocToGloMap)
Creates an instance of this class.
Array< OneD, NekDouble > m_diagonals
virtual void v_InitObject() override
void DiagonalPreconditionerSum(void)
static std::string lookupIds[]
PreconditionerDiagonal(const std::shared_ptr< GlobalLinSys > &plinsys, const AssemblyMapSharedPtr &pLocToGloMap)
virtual 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.
static std::string className
Name of class.
virtual void v_InitObject() override
static PreconditionerSharedPtr create(const std::shared_ptr< GlobalLinSys > &plinsys, const std::shared_ptr< AssemblyMap > &pLocToGloMap)
Creates an instance of this class.
virtual ~PreconditionerJacobi()
PreconditionerJacobi(const std::shared_ptr< GlobalLinSys > &plinsys, const AssemblyMapSharedPtr &pLocToGloMap)
static std::string lookupIds[]
virtual void v_BuildPreconditioner() override
static std::string className
Name of class.
virtual 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.
virtual void v_BuildPreconditioner() override
virtual 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.
static std::string className
Name of class.
virtual void v_InitObject() override
virtual ~PreconditionerNull()
static std::string lookupIds[]
PreconditionerNull(const std::shared_ptr< GlobalLinSys > &plinsys, const AssemblyMapSharedPtr &pLocToGloMap)
static PreconditionerSharedPtr create(const std::shared_ptr< GlobalLinSys > &plinsys, const std::shared_ptr< AssemblyMap > &pLocToGloMap)
Creates an instance of this class.
std::shared_ptr< PreconditionerJacobi > PreconditionerJacobiSharedPtr
std::shared_ptr< PreconditionerNull > PreconditionerNullSharedPtr
std::shared_ptr< Preconditioner > PreconditionerSharedPtr
std::shared_ptr< PreconditionerDiagonal > PreconditionerDiagonalSharedPtr
std::shared_ptr< AssemblyMap > AssemblyMapSharedPtr
The above copyright notice and this permission notice shall be included.