Nektar++
|
#include <PreconditionerLinearWithBlock.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 | |
PreconditionerSharedPtr | m_linSpacePrecon |
PreconditionerSharedPtr | m_blockPrecon |
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 |
This class implements preconditioning for the conjugate gradient matrix solver.
Definition at line 47 of file PreconditionerLinearWithBlock.h.
Nektar::MultiRegions::PreconditionerLinearWithBlock::PreconditionerLinearWithBlock | ( | const std::shared_ptr< GlobalLinSys > & | plinsys, |
const AssemblyMapSharedPtr & | pLocToGloMap | ||
) |
Definition at line 60 of file PreconditionerLinearWithBlock.cpp.
|
inlineoverride |
Definition at line 70 of file PreconditionerLinearWithBlock.h.
|
inlinestatic |
Creates an instance of this class.
Definition at line 51 of file PreconditionerLinearWithBlock.h.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), and CellMLToNektar.cellml_metadata::p.
|
overrideprotectedvirtual |
Reimplemented from Nektar::MultiRegions::Preconditioner.
Definition at line 81 of file PreconditionerLinearWithBlock.cpp.
References m_blockPrecon, and m_linSpacePrecon.
|
overrideprotectedvirtual |
Apply a preconditioner to the conjugate gradient method.
Reimplemented from Nektar::MultiRegions::Preconditioner.
Definition at line 90 of file PreconditionerLinearWithBlock.cpp.
References ASSERTL0, m_blockPrecon, and m_linSpacePrecon.
|
overrideprotectedvirtual |
Reimplemented from Nektar::MultiRegions::Preconditioner.
Definition at line 70 of file PreconditionerLinearWithBlock.cpp.
References Nektar::LibUtilities::NekFactory< tKey, tBase, tParam >::CreateInstance(), Nektar::MultiRegions::GetPreconFactory(), m_blockPrecon, m_linSpacePrecon, Nektar::MultiRegions::Preconditioner::m_linsys, and Nektar::MultiRegions::Preconditioner::m_locToGloMap.
|
static |
Name of class.
Registers the class with the Factory.
Definition at line 63 of file PreconditionerLinearWithBlock.h.
|
protected |
Definition at line 76 of file PreconditionerLinearWithBlock.h.
Referenced by v_BuildPreconditioner(), v_DoPreconditioner(), and v_InitObject().
|
protected |
Definition at line 75 of file PreconditionerLinearWithBlock.h.
Referenced by v_BuildPreconditioner(), v_DoPreconditioner(), and v_InitObject().