Nektar++
|
#include <PreconditionerDiagonal.h>
Static Public Member Functions | |
static PreconditionerSharedPtr | create (const std::shared_ptr< GlobalLinSys > &plinsys, const std::shared_ptr< AssemblyMap > &pLocToGloMap) |
Creates an instance of this class. More... | |
Static Public Attributes | |
static std::string | className |
Name of class. More... | |
Protected Member Functions | |
void | v_InitObject () override |
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. More... | |
void | v_BuildPreconditioner () override |
Protected Member Functions inherited from Nektar::MultiRegions::Preconditioner | |
virtual DNekScalMatSharedPtr | v_TransformedSchurCompl (int offset, int bndoffset, const std::shared_ptr< DNekScalMat > &loc_mat) |
Get block elemental transposed transformation matrix \(\mathbf{R}^{T}\). More... | |
virtual void | v_InitObject () |
virtual void | v_DoPreconditioner (const Array< OneD, NekDouble > &pInput, Array< OneD, NekDouble > &pOutput, const bool &isLocal=false) |
Apply a preconditioner to the conjugate gradient method. More... | |
virtual void | v_DoPreconditionerWithNonVertOutput (const Array< OneD, NekDouble > &pInput, Array< OneD, NekDouble > &pOutput, const Array< OneD, NekDouble > &pNonVertOutput, Array< OneD, NekDouble > &pVertForce) |
Apply a preconditioner to the conjugate gradient method with an output for non-vertex degrees of freedom. More... | |
virtual void | v_DoTransformBasisToLowEnergy (Array< OneD, NekDouble > &pInOut) |
Transform from original basis to low energy basis. More... | |
virtual void | v_DoTransformCoeffsFromLowEnergy (Array< OneD, NekDouble > &pInOut) |
Transform from low energy coeffs to orignal basis. More... | |
virtual void | v_DoTransformCoeffsToLowEnergy (const Array< OneD, NekDouble > &pInput, Array< OneD, NekDouble > &pOutput) |
Multiply by the block inverse transformation matrix. More... | |
virtual void | v_DoTransformBasisFromLowEnergy (const Array< OneD, NekDouble > &pInput, Array< OneD, NekDouble > &pOutput) |
Multiply by the block transposed inverse transformation matrix. More... | |
virtual void | v_BuildPreconditioner () |
Protected Attributes | |
Array< OneD, NekDouble > | m_diagonals |
Protected Attributes inherited from Nektar::MultiRegions::Preconditioner | |
const std::weak_ptr< GlobalLinSys > | m_linsys |
std::string | m_preconType |
DNekMatSharedPtr | m_preconditioner |
std::weak_ptr< AssemblyMap > | m_locToGloMap |
Private Member Functions | |
void | DiagonalPreconditionerSum (void) |
void | StaticCondDiagonalPreconditionerSum (void) |
Static Private Attributes | |
static std::string | lookupIds [] |
static std::string | def |
Definition at line 46 of file PreconditionerDiagonal.h.
Nektar::MultiRegions::PreconditionerDiagonal::PreconditionerDiagonal | ( | const std::shared_ptr< GlobalLinSys > & | plinsys, |
const AssemblyMapSharedPtr & | pLocToGloMap | ||
) |
Definition at line 58 of file PreconditionerDiagonal.cpp.
|
inlineoverride |
Definition at line 70 of file PreconditionerDiagonal.h.
|
inlinestatic |
Creates an instance of this class.
Definition at line 50 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 93 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 129 of file PreconditionerDiagonal.cpp.
References Nektar::MultiRegions::Preconditioner::AssembleStaticCondGlobalDiagonals(), m_diagonals, Nektar::MultiRegions::Preconditioner::m_locToGloMap, and Vmath::Sdiv().
Referenced by v_BuildPreconditioner().
|
overrideprotectedvirtual |
Reimplemented from Nektar::MultiRegions::Preconditioner.
Reimplemented in Nektar::MultiRegions::PreconditionerJacobi.
Definition at line 69 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().
Referenced by Nektar::MultiRegions::PreconditionerJacobi::v_BuildPreconditioner().
|
overrideprotectedvirtual |
Apply a preconditioner to the conjugate gradient method.
Reimplemented from Nektar::MultiRegions::Preconditioner.
Reimplemented in Nektar::MultiRegions::PreconditionerJacobi.
Definition at line 156 of file PreconditionerDiagonal.cpp.
References Nektar::MultiRegions::eIterativeFull, m_diagonals, Nektar::MultiRegions::Preconditioner::m_locToGloMap, Vmath::Vmul(), and Vmath::Zero().
|
overrideprotectedvirtual |
Reimplemented from Nektar::MultiRegions::Preconditioner.
Reimplemented in Nektar::MultiRegions::PreconditionerJacobi.
Definition at line 65 of file PreconditionerDiagonal.cpp.
|
static |
Name of class.
Registers the class with the Factory.
Definition at line 62 of file PreconditionerDiagonal.h.
|
staticprivate |
Definition at line 91 of file PreconditionerDiagonal.h.
|
staticprivate |
Definition at line 90 of file PreconditionerDiagonal.h.
Definition at line 75 of file PreconditionerDiagonal.h.
Referenced by DiagonalPreconditionerSum(), StaticCondDiagonalPreconditionerSum(), v_DoPreconditioner(), and Nektar::MultiRegions::PreconditionerJacobi::v_DoPreconditioner().