From 32ab8cb1a82ecc02c9b330d7b6c93a667e41540d Mon Sep 17 00:00:00 2001 From: michael Date: Mon, 17 May 2021 10:36:13 +0200 Subject: [PATCH] Changed prototype of function setLinearSolver --- CoreFlows/Models/inc/ProblemCoreFlows.hxx | 2 +- CoreFlows/Models/inc/ProblemFluid.hxx | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) 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 -- 2.39.2