65 m_verbose = pSession->DefinesCmdLineArgument(
"verbose");
80 bool converged =
false;
81 int ntotal = Residual.size();
82 boost::ignore_unused(nIteration);
87 if (SysResNorm < tol * tol)
100 size_t ndim = pInput.size();
101 if (pguess.size() != ndim)
bool m_root
Root if parallel.
virtual void v_NekSysInitialGuess(const Array< OneD, const NekDouble > &pInput, Array< OneD, NekDouble > &pguess)
LibUtilities::CommSharedPtr m_rowComm
Communicate.
NekDouble m_tolerance
Tolerance of iterative solver.
int m_SysDimen
The dimension of the system.
NekSys(const LibUtilities::SessionReaderSharedPtr &pSession, const LibUtilities::CommSharedPtr &vRowComm, const int nDimen, const NekSysKey &pKey)
virtual bool v_ConvergenceCheck(const int nIteration, const Array< OneD, const NekDouble > &Residual, const NekDouble tol)
bool m_converged
Whether the iteration has been converged.
std::shared_ptr< SessionReader > SessionReaderSharedPtr
std::shared_ptr< Comm > CommSharedPtr
Pointer to a Communicator object.
The above copyright notice and this permission notice shall be included.
T Dot(int n, const T *w, const T *x)
dot (vector times vector): z = w*x
void Vcopy(int n, const T *x, const int incx, T *y, const int incy)