45 namespace MultiRegions
51 string PreconditionerLinearWithDiag::className
53 "FullLinearSpaceWithDiagonal",
54 PreconditionerLinearWithDiag::create,
55 "Full linear space and diagonal preconditioning");
64 PreconditionerLinearWithDiag::PreconditionerLinearWithDiag(
65 const std::shared_ptr<GlobalLinSys> &plinsys,
104 m_linSpacePrecon->DoPreconditionerWithNonVertOutput(pInput, pOutput,OutputDiag);
tKey RegisterCreatorFunction(tKey idKey, CreatorFunction classCreator, std::string pDesc="")
Register a class with the factory.
tBaseSharedPtr CreateInstance(tKey idKey, tParam... args)
Create an instance of the class referred to by idKey.
const std::weak_ptr< GlobalLinSys > m_linsys
std::weak_ptr< AssemblyMap > m_locToGloMap
PreconditionerSharedPtr m_diagonalPrecon
PreconditionerSharedPtr m_linSpacePrecon
virtual void v_DoPreconditioner(const Array< OneD, NekDouble > &pInput, Array< OneD, NekDouble > &pOutput)
Apply a preconditioner to the conjugate gradient method.
virtual void v_BuildPreconditioner()
virtual void v_InitObject()
PreconFactory & GetPreconFactory()
std::shared_ptr< AssemblyMap > AssemblyMapSharedPtr
The above copyright notice and this permission notice shall be included.