Nektar++
|
#include <PreconditionerLinear.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 | className1 |
Name of class. More... | |
Protected Member Functions | |
void | v_InitObject () override |
void | v_DoPreconditionerWithNonVertOutput (const Array< OneD, NekDouble > &pInput, Array< OneD, NekDouble > &pOutput, const Array< OneD, NekDouble > &pNonVertOutput, Array< OneD, NekDouble > &pVertForce) override |
Apply a preconditioner to the conjugate gradient method with an output for non-vertex degrees of freedom. More... | |
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 |
void | SetupInvMult (const std::shared_ptr< AssemblyMap > &pLocToGloMap) |
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 | |
GlobalLinSysSharedPtr | m_vertLinsys |
std::shared_ptr< AssemblyMap > | m_vertLocToGloMap |
Array< OneD, NekDouble > | m_invMult |
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 |
Static Private Attributes | |
static std::string | solveType |
static std::string | solveTypeIds [] |
This class implements preconditioning for the conjugate gradient matrix solver.
Definition at line 54 of file PreconditionerLinear.h.
Nektar::MultiRegions::PreconditionerLinear::PreconditionerLinear | ( | const std::shared_ptr< GlobalLinSys > & | plinsys, |
const AssemblyMapSharedPtr & | pLocToGloMap | ||
) |
Definition at line 77 of file PreconditionerLinear.cpp.
|
inlineoverride |
Definition at line 77 of file PreconditionerLinear.h.
|
inlinestatic |
Creates an instance of this class.
Definition at line 58 of file PreconditionerLinear.h.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), and CellMLToNektar.cellml_metadata::p.
|
protected |
Create the inverse multiplicity map.
locToGloMap | Local to global mapping information. |
Definition at line 317 of file PreconditionerLinear.cpp.
References m_invMult.
Referenced by v_BuildPreconditioner().
|
overrideprotectedvirtual |
Reimplemented from Nektar::MultiRegions::Preconditioner.
Definition at line 88 of file PreconditionerLinear.cpp.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), ASSERTL0, Nektar::ErrorUtil::efatal, Nektar::MultiRegions::eIterativeStaticCond, Nektar::MultiRegions::eLinearPreconPETSc, Nektar::MultiRegions::eLinearPreconXxt, Nektar::StdRegions::eMass, Nektar::MultiRegions::ePETScFullMatrix, Nektar::MultiRegions::ePETScStaticCond, Nektar::StdRegions::ePreconLinearSpace, Nektar::StdRegions::ePreconLinearSpaceMass, Nektar::MultiRegions::eXxtFullMatrix, Nektar::MultiRegions::Preconditioner::m_linsys, Nektar::MultiRegions::Preconditioner::m_locToGloMap, m_vertLinsys, m_vertLocToGloMap, NEKERROR, SetupInvMult(), and solveType.
|
overrideprotectedvirtual |
Apply a preconditioner to the conjugate gradient method.
Reimplemented from Nektar::MultiRegions::Preconditioner.
Definition at line 163 of file PreconditionerLinear.cpp.
References ASSERTL0, Nektar::NullNekDouble1DArray, and v_DoPreconditionerWithNonVertOutput().
|
overrideprotectedvirtual |
Apply a preconditioner to the conjugate gradient method with an output for non-vertex degrees of freedom.
Reimplemented from Nektar::MultiRegions::Preconditioner.
Definition at line 176 of file PreconditionerLinear.cpp.
References ASSERTL0, ASSERTL1, Nektar::MultiRegions::eIterativeStaticCond, Nektar::MultiRegions::ePETScStaticCond, m_invMult, Nektar::MultiRegions::Preconditioner::m_locToGloMap, m_vertLinsys, m_vertLocToGloMap, Nektar::NullNekDouble1DArray, Vmath::Vcopy(), and Vmath::Zero().
Referenced by v_DoPreconditioner().
|
overrideprotectedvirtual |
Reimplemented from Nektar::MultiRegions::Preconditioner.
Definition at line 84 of file PreconditionerLinear.cpp.
|
static |
Name of class.
Registers the class with the Factory.
Definition at line 70 of file PreconditionerLinear.h.
Definition at line 85 of file PreconditionerLinear.h.
Referenced by SetupInvMult(), and v_DoPreconditionerWithNonVertOutput().
|
protected |
Definition at line 82 of file PreconditionerLinear.h.
Referenced by v_BuildPreconditioner(), and v_DoPreconditionerWithNonVertOutput().
|
protected |
Definition at line 83 of file PreconditionerLinear.h.
Referenced by v_BuildPreconditioner(), and v_DoPreconditionerWithNonVertOutput().
|
staticprivate |
Definition at line 103 of file PreconditionerLinear.h.
Referenced by v_BuildPreconditioner().
|
staticprivate |
Definition at line 104 of file PreconditionerLinear.h.