Nektar++
|
#include <PreconditionerDiagonal.h>
Static Public Member Functions | |
static PreconditionerSharedPtr | create (const boost::shared_ptr< GlobalLinSys > &plinsys, const boost::shared_ptr< AssemblyMap > &pLocToGloMap) |
Creates an instance of this class. More... | |
Static Public Attributes | |
static std::string | className |
Name of class. More... | |
Protected Attributes | |
Array< OneD, NekDouble > | m_diagonals |
PreconditionerType | m_preconType |
Protected Attributes inherited from Nektar::MultiRegions::Preconditioner | |
const boost::weak_ptr < GlobalLinSys > | m_linsys |
PreconditionerType | m_preconType |
DNekMatSharedPtr | m_preconditioner |
boost::shared_ptr< AssemblyMap > | m_locToGloMap |
LibUtilities::CommSharedPtr | m_comm |
Private Member Functions | |
void | DiagonalPreconditionerSum (void) |
void | StaticCondDiagonalPreconditionerSum (void) |
virtual void | v_InitObject () |
virtual void | v_DoPreconditioner (const Array< OneD, NekDouble > &pInput, Array< OneD, NekDouble > &pOutput) |
Apply a preconditioner to the conjugate gradient method. More... | |
virtual void | v_BuildPreconditioner () |
Static Private Attributes | |
static std::string | lookupIds [] |
static std::string | def |
Additional Inherited Members | |
Protected Member Functions inherited from Nektar::MultiRegions::Preconditioner | |
virtual DNekScalMatSharedPtr | v_TransformedSchurCompl (int offset, const boost::shared_ptr< DNekScalMat > &loc_mat) |
Get block elemental transposed transformation matrix . More... | |
Definition at line 50 of file PreconditionerDiagonal.h.
Nektar::MultiRegions::PreconditionerDiagonal::PreconditionerDiagonal | ( | const boost::shared_ptr< GlobalLinSys > & | plinsys, |
const AssemblyMapSharedPtr & | pLocToGloMap | ||
) |
Definition at line 63 of file PreconditionerDiagonal.cpp.
|
inlinevirtual |
Definition at line 73 of file PreconditionerDiagonal.h.
|
inlinestatic |
Creates an instance of this class.
Definition at line 54 of file PreconditionerDiagonal.h.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), and CellMLToNektar.cellml_metadata::p.
Diagonal preconditioner computed by summing the relevant elements of the local matrix system.
Definition at line 100 of file PreconditionerDiagonal.cpp.
References m_diagonals, Nektar::MultiRegions::Preconditioner::m_linsys, Nektar::MultiRegions::Preconditioner::m_locToGloMap, and Vmath::Sdiv().
Referenced by v_BuildPreconditioner().
|
private |
Diagonal preconditioner defined as the inverse of the main diagonal of the Schur complement
Definition at line 163 of file PreconditionerDiagonal.cpp.
References Nektar::MultiRegions::Preconditioner::AssembleStaticCondGlobalDiagonals(), m_diagonals, Nektar::MultiRegions::Preconditioner::m_locToGloMap, and Vmath::Sdiv().
Referenced by v_BuildPreconditioner().
|
privatevirtual |
Reimplemented from Nektar::MultiRegions::Preconditioner.
Definition at line 75 of file PreconditionerDiagonal.cpp.
References ASSERTL0, DiagonalPreconditionerSum(), Nektar::MultiRegions::eIterativeFull, Nektar::MultiRegions::eIterativeMultiLevelStaticCond, Nektar::MultiRegions::eIterativeStaticCond, Nektar::MultiRegions::ePETScMultiLevelStaticCond, Nektar::MultiRegions::ePETScStaticCond, Nektar::MultiRegions::Preconditioner::m_locToGloMap, and StaticCondDiagonalPreconditionerSum().
|
privatevirtual |
Apply a preconditioner to the conjugate gradient method.
Reimplemented from Nektar::MultiRegions::Preconditioner.
Definition at line 188 of file PreconditionerDiagonal.cpp.
References Nektar::MultiRegions::eIterativeFull, m_diagonals, Nektar::MultiRegions::Preconditioner::m_locToGloMap, and Vmath::Vmul().
|
privatevirtual |
Reimplemented from Nektar::MultiRegions::Preconditioner.
Definition at line 71 of file PreconditionerDiagonal.cpp.
|
static |
Name of class.
Registers the class with the Factory.
Definition at line 65 of file PreconditionerDiagonal.h.
|
staticprivate |
Definition at line 96 of file PreconditionerDiagonal.h.
|
staticprivate |
Definition at line 95 of file PreconditionerDiagonal.h.
Definition at line 77 of file PreconditionerDiagonal.h.
Referenced by DiagonalPreconditionerSum(), StaticCondDiagonalPreconditionerSum(), and v_DoPreconditioner().
|
protected |
Definition at line 79 of file PreconditionerDiagonal.h.