You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For large scale problems, one issue with the inexact Newton's method is that the assembly of the Jacobian matrix takes lots of time. In the very early stages (first 2-5 iterations) the inexact Newton's method has a very low tolerance, so that the linear solver converges in about 1-10 iterations (this does not take a long time).
Hence, it might be an idea to let the inexact Newton's method use a minimum number of iterations (say 10-20) regardless of the tolerance, so that the information of the Jacobian matrix can be used more efficiently instead of re-assembling it (with very minor changes) so often, which is expensive.
The text was updated successfully, but these errors were encountered:
This is available starting with PETSc >= 3.20 - the user only has to specify "ksp_min_it" in the ksp_options for the solve. Hence, it is not necessary to provide a cashocs-based interface for this.
For large scale problems, one issue with the inexact Newton's method is that the assembly of the Jacobian matrix takes lots of time. In the very early stages (first 2-5 iterations) the inexact Newton's method has a very low tolerance, so that the linear solver converges in about 1-10 iterations (this does not take a long time).
Hence, it might be an idea to let the inexact Newton's method use a minimum number of iterations (say 10-20) regardless of the tolerance, so that the information of the Jacobian matrix can be used more efficiently instead of re-assembling it (with very minor changes) so often, which is expensive.
The text was updated successfully, but these errors were encountered: