42 namespace LibUtilities
58 :
NekSys(pSession, vComm, nDimen, pKey)
60 std::vector<std::string> variables(1);
61 variables[0] = pSession->GetVariable(0);
62 string variable = variables[0];
64 if (pSession->DefinesGlobalSysSolnInfo(variable,
"NekNonlinSysTolerance"))
67 pSession->GetGlobalSysSolnInfo(variable,
"NekNonlinSysTolerance")
72 pSession->LoadParameter(
"NekNonlinSysTolerance",
m_tolerance,
76 if (pSession->DefinesGlobalSysSolnInfo(variable,
77 "NekNonlinSysMaxIterations"))
81 ->GetGlobalSysSolnInfo(variable,
"NekNonlinSysMaxIterations")
86 pSession->LoadParameter(
"NekNonlinSysMaxIterations",
m_maxiter,
90 if (pSession->DefinesGlobalSysSolnInfo(variable,
"NonlinIterTolRelativeL2"))
93 pSession->GetGlobalSysSolnInfo(variable,
"NonlinIterTolRelativeL2")
98 pSession->LoadParameter(
"NonlinIterTolRelativeL2",
103 if (pSession->DefinesGlobalSysSolnInfo(variable,
104 "LinSysRelativeTolInNonlin"))
108 ->GetGlobalSysSolnInfo(variable,
"LinSysRelativeTolInNonlin")
113 pSession->LoadParameter(
"LinSysRelativeTolInNonlin",
122 if (pSession->DefinesGlobalSysSolnInfo(variable,
123 "LinSysIterSolverTypeInNonlin"))
126 variable,
"LinSysIterSolverTypeInNonlin");
130 if (pSession->DefinesSolverInfo(
"LinSysIterSolverTypeInNonlin"))
133 pSession->GetSolverInfo(
"LinSysIterSolverTypeInNonlin");
140 "' is not defined.\n");
#define ASSERTL0(condition, msg)
Provides a generic Factory class.
tBaseSharedPtr CreateInstance(tKey idKey, tParam... args)
Create an instance of the class referred to by idKey.
NekDouble m_NonlinIterTolRelativeL2
std::string m_LinSysIterSolverType
NekDouble m_LinSysRelativeTolInNonlin
virtual void v_InitObject()
NekLinSysIterSharedPtr m_linsol
virtual void v_InitObject()
NekDouble m_tolerance
Tolerance of iterative solver.
int m_SysDimen
The dimension of the system.
LibUtilities::CommSharedPtr m_Comm
Communicate.
int m_maxiter
Maximum iterations.
NekDouble m_NonlinIterTolRelativeL2
int m_NekNonlinSysMaxIterations
NekDouble m_LinSysRelativeTolInNonlin
std::string m_LinSysIterSolverTypeInNonlin
NekDouble m_NekNonlinSysTolerance
NekNonlinSysFactory & GetNekNonlinSysFactory()
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.