chaos-polymtl / lethe

Repository for the open-source lethe CFD/DEM/CFD-DEM project
https://chaos-polymtl.github.io/lethe/index.html
GNU Lesser General Public License v2.1
267 stars 59 forks source link

Add more coarse-grid solvers for GMG #1121

Closed lpsaavedra closed 3 months ago

lpsaavedra commented 3 months ago

Description of the problem

Until now the matrix-free solver was only supporting GMRES as coarse-grid solver preconditioned by ILU or AMG for the GMG preconditioner.

Description of the solution

This PR adds also the possibility to choose AMG, ILU or a direct solver as coarse-grid solver in the GMG preconditioner. It creates a new parameter that allows to choose the coarse-grid solver and renames the GMRES specific parameters to be able to differentiate them.

How Has This Been Tested?

All the tests use by default the GMRES coarse-grid solver and none of them was modified. Only the parameters were renamed according to the new definition of GMRES parameters in the prm file.

Documentation