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
270 stars 59 forks source link

Use the eigenvalue estimation of PreconditionRelaxation #1064

Closed lpsaavedra closed 6 months ago

lpsaavedra commented 6 months ago

Description of the problem

The eigenvalue estimation for the smoother of the multigrid preconditioners was done through a PreconditionChebyshev.

Description of the solution

Due to recent changes in deal.II (https://github.com/dealii/dealii/pull/16742), now we are able to do it using the PreconditionRelaxation directly. This allows us to remove the estimate omega function since it is done internally by the smoother if the relaxation parameter is set to 1. This allows also to remove the degree parameter that was only used in the case of Chebyshev.

peterrum commented 6 months ago

I guess we need to drop deal.II 9.5 CI?

lpsaavedra commented 6 months ago

I will check the deal.II version as we did here: https://github.com/lethe-cfd/lethe/blob/82095bab9286844d9f1cec0dab67cf3575c1791a/source/solvers/mf_navier_stokes.cc#L651