43 namespace LibUtilities
50 string NekLinSysIterFixedpointJacobi::className =
52 "FixedpointJacobi", NekLinSysIterFixedpointJacobi::create,
53 "NekLinSysIterFixedpointJacobi solver.");
55 NekLinSysIterFixedpointJacobi::NekLinSysIterFixedpointJacobi(
80 boost::ignore_unused(tol, nDir);
91 Vmath::Vsub(nGlobal, pSolution, 1, pSol0, 1, pSol0, 1);
tKey RegisterCreatorFunction(tKey idKey, CreatorFunction classCreator, std::string pDesc="")
Register a class with the factory.
~NekLinSysIterFixedpointJacobi()
virtual void v_InitObject()
virtual int v_SolveSystem(const int nGlobal, const Array< OneD, const NekDouble > &pInput, Array< OneD, NekDouble > &pOutput, const int nDir, const NekDouble tol, const NekDouble factor)
virtual void v_InitObject()
bool ConvergenceCheck(const int nIteration, const Array< OneD, const NekDouble > &Residual, const NekDouble tol=1.0E-7)
NekDouble m_tolerance
Tolerance of iterative solver.
NekSysOperators m_operator
Operators.
bool m_converged
Whether the iteration has been converged.
int m_maxiter
Maximum iterations.
void DoNekSysFixPointIte(InArrayType &rhs, InArrayType &xn, OutArrayType &xn1, const bool &flag=false) const
std::shared_ptr< SessionReader > SessionReaderSharedPtr
NekLinSysIterFactory & GetNekLinSysIterFactory()
std::shared_ptr< Comm > CommSharedPtr
Pointer to a Communicator object.
The above copyright notice and this permission notice shall be included.
void Vcopy(int n, const T *x, const int incx, T *y, const int incy)
void Vsub(int n, const T *x, const int incx, const T *y, const int incy, T *z, const int incz)
Subtract vector z = x-y.