34#ifndef NEKTAR_LIB_MULTIREGIONS_GLOBALLINSYSITERATIVE_H
35#define NEKTAR_LIB_MULTIREGIONS_GLOBALLINSYSITERATIVE_H
54 const std::shared_ptr<AssemblyMap> &pLocToGloMap);
113 const bool isAconjugate);
123 const int pNumDirBndDofs,
124 const bool isAconjugate);
130 const bool &isLocal =
false)
132 m_precon->DoPreconditioner(pInput, pOutput, isLocal);
137 [[maybe_unused]]
const bool &controlFlag)
145 m_precon->DoAssembleLoc(pInput, pOutput, ZeroDir);
#define MULTI_REGIONS_EXPORT
GlobalLinSysIterative(const GlobalLinSysKey &pKey, const std::weak_ptr< ExpList > &pExpList, const std::shared_ptr< AssemblyMap > &pLocToGloMap)
Constructor for full direct matrix solve.
static std::string IteratSolverdef
Array< OneD, int > m_ipivot
std::vector< Array< OneD, NekDouble > > m_prevBasis
LibUtilities::NekLinSysIterSharedPtr m_linsol
bool m_isAbsoluteTolerance
void DoMatrixMultiply(const Array< OneD, NekDouble > &pInput, Array< OneD, NekDouble > &pOutput)
PreconditionerSharedPtr m_precon
void UpdateKnownSolutions(const int pGlobalBndDofs, const Array< OneD, const NekDouble > &pSolution, const int pNumDirBndDofs, const bool isAconjugate)
Array< OneD, NekDouble > m_coeffMatrixFactor
void DoAssembleLocFlag(const Array< OneD, NekDouble > &pInput, Array< OneD, NekDouble > &pOutput, const bool &ZeroDir)
int ResetKnownSolutionsToLatestOne()
bool m_isNonSymmetricLinSys
void DoPreconditionerFlag(const Array< OneD, NekDouble > &pInput, Array< OneD, NekDouble > &pOutput, const bool &isLocal=false)
std::vector< Array< OneD, NekDouble > > m_prevLinSol
Storage for solutions to previous linear problems.
void DoMatrixMultiplyFlag(const Array< OneD, NekDouble > &pInput, Array< OneD, NekDouble > &pOutput, const bool &controlFlag)
static std::string IteratSolverlookupIds[]
void DoProjection(const int pNumRows, const Array< OneD, const NekDouble > &pInput, Array< OneD, NekDouble > &pOutput, const int pNumDir, const bool isAconjugate)
projection technique
virtual void v_DoMatrixMultiply(const Array< OneD, NekDouble > &pInput, Array< OneD, NekDouble > &pOutput)=0
bool m_useProjection
Whether to apply projection technique.
virtual void v_UniqueMap()=0
Array< OneD, int > m_map
Global to universal unique map.
NekDouble m_rhs_magnitude
dot product of rhs to normalise stopping criterion
DNekMatSharedPtr m_coeffMatrix
LibUtilities::NekSysOperators m_NekSysOp
std::string m_linSysIterSolver
Iterative solver: Conjugate Gradient, GMRES.
~GlobalLinSysIterative() override
bool m_root
Root if parallel.
NekDouble m_rhs_mag_sm
cnt to how many times rhs_magnitude is called
Describe a linear system.
std::shared_ptr< NekLinSysIter > NekLinSysIterSharedPtr
std::shared_ptr< Preconditioner > PreconditionerSharedPtr
std::shared_ptr< DNekMat > DNekMatSharedPtr