From: michael Date: Mon, 17 May 2021 08:36:13 +0000 (+0200) Subject: Changed prototype of function setLinearSolver X-Git-Tag: V9_7_0~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=32ab8cb1a82ecc02c9b330d7b6c93a667e41540d;p=tools%2Fsolverlab.git Changed prototype of function setLinearSolver --- diff --git a/CoreFlows/Models/inc/ProblemCoreFlows.hxx b/CoreFlows/Models/inc/ProblemCoreFlows.hxx index 253e1be..64b2d73 100755 --- a/CoreFlows/Models/inc/ProblemCoreFlows.hxx +++ b/CoreFlows/Models/inc/ProblemCoreFlows.hxx @@ -467,7 +467,7 @@ public : * @param kspType linear solver type (GMRES or BICGSTAB) * @param pcType preconditioner (ILU,LU or NONE) */ - void setLinearSolver(linearSolver solverName, preconditioner pcType); + void setLinearSolver(linearSolver solverName, preconditioner pcType, double maxIts=50); /** \fn setNewtonSolver * \brief sets the Newton type algorithm for solving the nonlinear algebraic system arising from the discretisation of the PDE diff --git a/CoreFlows/Models/inc/ProblemFluid.hxx b/CoreFlows/Models/inc/ProblemFluid.hxx index 00e92ca..15f31a4 100755 --- a/CoreFlows/Models/inc/ProblemFluid.hxx +++ b/CoreFlows/Models/inc/ProblemFluid.hxx @@ -309,9 +309,9 @@ public : * @param pcType preconditioner (ILU,LU or NONE) * @param scaling performs a bancing of the system matrix before calling th preconditioner */ - void setLinearSolver(linearSolver kspType, preconditioner pcType, bool scaling=false) + void setLinearSolver(linearSolver kspType, preconditioner pcType, double maxIts=50, bool scaling=false) { - ProblemCoreFlows::setLinearSolver(kspType, pcType); + ProblemCoreFlows::setLinearSolver(kspType, pcType, maxIts); _isScaling= scaling; }; @@ -624,8 +624,6 @@ protected : * */ virtual void porosityGradientSourceVector()=0; - //matrice de gravite - /** \fn jacobian * \brief Calcule la jacobienne de la ConditionLimite convection * \Details est une fonction virtuelle pure, qu'on surcharge dans chacun des modèles