34 #ifndef NEKTAR_LIB_MULTIREGIONS_PRECONDITIONERLINEARWITHLOWENERGY_H 35 #define NEKTAR_LIB_MULTIREGIONS_PRECONDITIONERLINEARWITHLOWENERGY_H 43 namespace MultiRegions
53 const std::shared_ptr<GlobalLinSys> &plinsys,
54 const std::shared_ptr<AssemblyMap> &pLocToGloMap)
65 const std::shared_ptr<GlobalLinSys> &plinsys,
88 const std::shared_ptr<DNekScalMat > &loc_mat);
virtual void v_DoTransformToLowEnergy(Array< OneD, NekDouble > &pInOut, int offset)
Transform from original basis to low energy basis.
std::shared_ptr< DNekScalMat > DNekScalMatSharedPtr
static PreconditionerSharedPtr create(const std::shared_ptr< GlobalLinSys > &plinsys, const std::shared_ptr< AssemblyMap > &pLocToGloMap)
Creates an instance of this class.
#define MULTI_REGIONS_EXPORT
std::shared_ptr< AssemblyMap > AssemblyMapSharedPtr
static std::string className
Name of class.
virtual void v_InitObject()
virtual void v_DoTransformFromLowEnergy(Array< OneD, NekDouble > &pInput)
Transform from low energy basis to orignal basis.
static std::shared_ptr< DataType > AllocateSharedPtr(const Args &...args)
Allocate a shared pointer from the memory pool.
virtual void v_DoPreconditioner(const Array< OneD, NekDouble > &pInput, Array< OneD, NekDouble > &pOutput)
Apply a preconditioner to the conjugate gradient method.
virtual ~PreconditionerLinearWithLowEnergy()
PreconditionerLinearWithLowEnergy(const std::shared_ptr< GlobalLinSys > &plinsys, const AssemblyMapSharedPtr &pLocToGloMap)
std::shared_ptr< PreconditionerLinearWithLowEnergy > PreconditionerLinearWithLowEnergySharedPtr
virtual DNekScalMatSharedPtr v_TransformedSchurCompl(int n, int offset, const std::shared_ptr< DNekScalMat > &loc_mat)
Get block elemental transposed transformation matrix .
PreconditionerSharedPtr m_linSpacePrecon
virtual void v_BuildPreconditioner()
std::shared_ptr< Preconditioner > PreconditionerSharedPtr
PreconditionerSharedPtr m_lowEnergyPrecon