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 functionality to disable hessians in matrix-free #1127

Closed lpsaavedra closed 3 months ago

lpsaavedra commented 3 months ago

Description of the problem

Evaluating terms involving the hessian is expensive. In the matrix-free application this is done way more times than in the matrix-based application, and is affecting performance significantly.

Description of the solution

In this PR we include 3 new parameters that allow to enable or disable all the terms involving the hessian. The first two allow to do so for the jacobian and the residual of the linear system. The other one, allows to do the same for the jacobian of the multigrid preconditioner operators.

How Has This Been Tested?

Documentation