Nektar++
|
#include <Preconditioner.h>
Protected Member Functions | |
virtual DNekScalMatSharedPtr | v_TransformedSchurCompl (int offset, const boost::shared_ptr< DNekScalMat > &loc_mat) |
Get block elemental transposed transformation matrix . |
Protected Attributes | |
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 | NullPreconditioner (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. | |
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. | |
virtual void | v_DoTransformToLowEnergy (Array< OneD, NekDouble > &pInOut, int offset) |
Transform from original basis to low energy basis. | |
virtual void | v_DoTransformToLowEnergy (const Array< OneD, NekDouble > &pInput, Array< OneD, NekDouble > &pOutput) |
Transform from original basis to low energy basis. | |
virtual void | v_DoTransformFromLowEnergy (Array< OneD, NekDouble > &pInput) |
Transform from low energy basis to orignal basis. | |
virtual void | v_DoMultiplybyInverseTransformationMatrix (const Array< OneD, NekDouble > &pInput, Array< OneD, NekDouble > &pOutput) |
Multiply by the block inverse transformation matrix. | |
virtual void | v_DoMultiplybyInverseTransposedTransformationMatrix (const Array< OneD, NekDouble > &pInput, Array< OneD, NekDouble > &pOutput) |
Multiply by the block transposed inverse transformation matrix. | |
virtual void | v_BuildPreconditioner () |
Static Private Attributes | |
static std::string | lookupIds [] |
static std::string | def |
This class implements preconditioning for the conjugate
gradient matrix solver.
This class implements diagonal preconditioning for the conjugate
gradient matrix solver.
Definition at line 66 of file Preconditioner.h.
Nektar::MultiRegions::Preconditioner::Preconditioner | ( | const boost::shared_ptr< GlobalLinSys > & | plinsys, |
const AssemblyMapSharedPtr & | pLocToGloMap | ||
) |
Definition at line 76 of file Preconditioner.cpp.
|
inlinevirtual |
Definition at line 74 of file Preconditioner.h.
Array< OneD, NekDouble > Nektar::MultiRegions::Preconditioner::AssembleStaticCondGlobalDiagonals | ( | ) |
Performs global assembly of diagonal entries to global Schur complement matrix.
Definition at line 190 of file Preconditioner.cpp.
References m_linsys, and m_locToGloMap.
Referenced by Nektar::MultiRegions::PreconditionerDiagonal::StaticCondDiagonalPreconditionerSum().
|
inline |
Definition at line 280 of file Preconditioner.h.
References v_BuildPreconditioner().
|
inline |
Definition at line 259 of file Preconditioner.h.
References v_DoMultiplybyInverseTransformationMatrix().
|
inline |
Definition at line 270 of file Preconditioner.h.
References v_DoMultiplybyInverseTransposedTransformationMatrix().
|
inline |
Definition at line 207 of file Preconditioner.h.
References v_DoPreconditioner().
|
inline |
Definition at line 218 of file Preconditioner.h.
References v_DoPreconditionerWithNonVertOutput().
|
inline |
Definition at line 250 of file Preconditioner.h.
References v_DoTransformFromLowEnergy().
|
inline |
Definition at line 231 of file Preconditioner.h.
References v_DoTransformToLowEnergy().
|
inline |
Definition at line 240 of file Preconditioner.h.
References v_DoTransformToLowEnergy().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 198 of file Preconditioner.h.
References v_TransformedSchurCompl().
|
privatevirtual |
|
privatevirtual |
Multiply by the block inverse transformation matrix.
Definition at line 154 of file Preconditioner.cpp.
References ErrorUtil::efatal, and NEKERROR.
Referenced by DoMultiplybyInverseTransformationMatrix().
|
privatevirtual |
Multiply by the block transposed inverse transformation matrix.
Definition at line 164 of file Preconditioner.cpp.
References ErrorUtil::efatal, and NEKERROR.
Referenced by DoMultiplybyInverseTransposedTransformationMatrix().
|
privatevirtual |
Apply a preconditioner to the conjugate gradient method.
Definition at line 104 of file Preconditioner.cpp.
References ErrorUtil::efatal, and NEKERROR.
Referenced by DoPreconditioner().
|
privatevirtual |
Apply a preconditioner to the conjugate gradient method with an output for non-vertex degrees of freedom.
Definition at line 115 of file Preconditioner.cpp.
References ErrorUtil::efatal, and NEKERROR.
Referenced by DoPreconditionerWithNonVertOutput().
|
privatevirtual |
Transform from low energy basis to orignal basis.
Definition at line 145 of file Preconditioner.cpp.
References Vmath::Smul().
Referenced by DoTransformFromLowEnergy().
|
privatevirtual |
Transform from original basis to low energy basis.
Definition at line 127 of file Preconditioner.cpp.
Referenced by DoTransformToLowEnergy().
|
privatevirtual |
Transform from original basis to low energy basis.
Definition at line 136 of file Preconditioner.cpp.
|
privatevirtual |
Definition at line 96 of file Preconditioner.cpp.
References ErrorUtil::efatal, and NEKERROR.
Referenced by InitObject().
|
protectedvirtual |
Get block elemental transposed transformation matrix .
Definition at line 179 of file Preconditioner.cpp.
Referenced by TransformedSchurCompl().
|
staticprivate |
Definition at line 183 of file Preconditioner.h.
|
staticprivate |
Definition at line 182 of file Preconditioner.h.
|
protected |
|
protected |
Definition at line 134 of file Preconditioner.h.
Referenced by AssembleStaticCondGlobalDiagonals(), Nektar::MultiRegions::PreconditionerDiagonal::DiagonalPreconditionerSum(), Nektar::MultiRegions::PreconditionerLinear::v_BuildPreconditioner(), Nektar::MultiRegions::PreconditionerLinearWithBlock::v_InitObject(), Nektar::MultiRegions::PreconditionerLinearWithLowEnergy::v_InitObject(), and Nektar::MultiRegions::PreconditionerLinearWithDiag::v_InitObject().
|
protected |
Definition at line 137 of file Preconditioner.h.
Referenced by AssembleStaticCondGlobalDiagonals(), Nektar::MultiRegions::PreconditionerDiagonal::DiagonalPreconditionerSum(), Nektar::MultiRegions::PreconditionerDiagonal::StaticCondDiagonalPreconditionerSum(), Nektar::MultiRegions::PreconditionerDiagonal::v_BuildPreconditioner(), Nektar::MultiRegions::PreconditionerLinear::v_BuildPreconditioner(), Nektar::MultiRegions::PreconditionerDiagonal::v_DoPreconditioner(), Nektar::MultiRegions::PreconditionerLinear::v_DoPreconditionerWithNonVertOutput(), Nektar::MultiRegions::PreconditionerLinearWithBlock::v_InitObject(), Nektar::MultiRegions::PreconditionerLinearWithLowEnergy::v_InitObject(), and Nektar::MultiRegions::PreconditionerLinearWithDiag::v_InitObject().
|
protected |
Definition at line 136 of file Preconditioner.h.
|
protected |
Definition at line 135 of file Preconditioner.h.