<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span></span>Hi,
<div>I am using JFNK, inexact Newton and a shell "physics-based" preconditioning to solve some multiphysics problems. I have been playing with mat_mffd_err, and it gives me some results I do not fully understand. </div>
<div><br>
</div>
<div>I believe the default value of mat_mffd_err is 10^-8 for double precision, which seem too large for my problems. When I test a problem essentially still in the linear regime, I expect my converged "unpreconditioned resid norm of KSP" should be identical
to "SNES Function norm" (Should I?). This is exactly what I found if I could find a good mat_mffd_err, normally between 10^-3 to 10^-5. So when it happens, the whole algorithm works as expected. When those two norms are off, the inexact Newton becomes very
inefficient. For instance, it may take many ksp iterations to converge but the snes norm is only reduced slightly.</div>
<div><br>
</div>
<div>According to the manual, mat_mffd_err should be "square root of relative error in function evaluation". But is there a simple way to estimate it? </div>
<div><br>
</div>
<div>Is there anything else I could possibly tune in this context? </div>
<div><br>
</div>
<div>The discretization is through mfem and I use standard H1 for my problem. <br>
</div>
<div><br>
</div>
<div>Thanks,</div>
<span>Qi</span><br>
</div>
</body>
</html>