<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Menlo;
        panose-1:2 11 6 9 3 8 4 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-ligatures:standardcontextual;
        mso-fareast-language:EN-US;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
p.p1, li.p1, div.p1
        {mso-style-name:p1;
        margin:0cm;
        background:white;
        font-size:8.5pt;
        font-family:Menlo;
        color:black;}
p.p2, li.p2, div.p2
        {mso-style-name:p2;
        margin:0cm;
        background:white;
        font-size:8.5pt;
        font-family:Menlo;
        color:black;}
span.apple-converted-space
        {mso-style-name:apple-converted-space;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="EN-GB" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Hello,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The non-linear solution diverged. The final solution seems right and I believe the Jacobian is correct (not 100% certain).
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I am not sure if I doing something wrong in the solver setting.
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="p1"><span class="apple-converted-space"><span style="color:black"> </span></span><span style="color:black">0 SNES Function norm 3.890991210938e-03<span class="apple-converted-space"> </span><o:p></o:p></span></p>
<p class="p1"><span class="apple-converted-space"><span style="color:black">    </span>
</span><span style="color:black">0 KSP Residual norm 9.037762538598e+00<span class="apple-converted-space"> </span><o:p></o:p></span></p>
<p class="p1"><span class="apple-converted-space"><span style="color:black">    </span>
</span><span style="color:black">1 KSP Residual norm 2.120375403775e-01<span class="apple-converted-space"> </span><o:p></o:p></span></p>
<p class="p1"><span class="apple-converted-space"><span style="color:black">    </span>
</span><span style="color:black">2 KSP Residual norm 5.155439334511e-03<span class="apple-converted-space"> </span><o:p></o:p></span></p>
<p class="p1"><span class="apple-converted-space"><span style="color:black">    </span>
</span><span style="color:black">3 KSP Residual norm 1.394364169369e-04<span class="apple-converted-space"> </span><o:p></o:p></span></p>
<p class="p1"><span class="apple-converted-space"><span style="color:black">    </span>
</span><span style="color:black">4 KSP Residual norm 9.233543407204e-06<span class="apple-converted-space"> </span><o:p></o:p></span></p>
<p class="p1"><span class="apple-converted-space"><span style="color:black">  </span>
</span><span style="color:black">Linear solve converged due to CONVERGED_RTOL iterations 4<o:p></o:p></span></p>
<p class="p2"><span style="color:black"><o:p> </o:p></span></p>
<p class="p1"><span class="apple-converted-space"><span style="color:black">     
</span></span><span style="color:black">Line search: Using full step: fnorm 3.890991210938e-03 gnorm 7.701511565083e-06<o:p></o:p></span></p>
<p class="p1"><span class="apple-converted-space"><span style="color:black">  </span>
</span><span style="color:black">1 SNES Function norm 7.701511565083e-06<span class="apple-converted-space"> </span><o:p></o:p></span></p>
<p class="p1"><span class="apple-converted-space"><span style="color:black">    </span>
</span><span style="color:black">0 KSP Residual norm 5.630229687829e-03<span class="apple-converted-space"> </span><o:p></o:p></span></p>
<p class="p1"><span class="apple-converted-space"><span style="color:black">    </span>
</span><span style="color:black">1 KSP Residual norm 1.030475601271e-04<span class="apple-converted-space"> </span><o:p></o:p></span></p>
<p class="p1"><span class="apple-converted-space"><span style="color:black">    </span>
</span><span style="color:black">2 KSP Residual norm 2.576454714319e-06<span class="apple-converted-space"> </span><o:p></o:p></span></p>
<p class="p1"><span class="apple-converted-space"><span style="color:black">    </span>
</span><span style="color:black">3 KSP Residual norm 6.669316846898e-08<span class="apple-converted-space"> </span><o:p></o:p></span></p>
<p class="p1"><span class="apple-converted-space"><span style="color:black">    </span>
</span><span style="color:black">4 KSP Residual norm 3.215810984829e-09<span class="apple-converted-space"> </span><o:p></o:p></span></p>
<p class="p1"><span class="apple-converted-space"><span style="color:black">  </span>
</span><span style="color:black">Linear solve converged due to CONVERGED_RTOL iterations 4<o:p></o:p></span></p>
<p class="p2"><span style="color:black"><o:p> </o:p></span></p>
<p class="p1"><span class="apple-converted-space"><span style="color:black">     
</span></span><span style="color:black">Line search: gnorm after quadratic fit 1.805500533481e-05<o:p></o:p></span></p>
<p class="p1"><span class="apple-converted-space"><span style="color:black">     
</span></span><span style="color:black">Line search: Cubic step no good, shrinking lambda, current gnorm 2.563759884284e-05 lambda=3.0804668685096816e-02<o:p></o:p></span></p>
<p class="p1"><span class="apple-converted-space"><span style="color:black">     
</span></span><span style="color:black">Line search: Cubic step no good, shrinking lambda, current gnorm 3.332721829751e-05 lambda=3.0804668685096817e-03<o:p></o:p></span></p>
<p class="p1"><span class="apple-converted-space"><span style="color:black">     
</span></span><span style="color:black">Line search: Cubic step no good, shrinking lambda, current gnorm 4.102754045833e-05 lambda=3.0804668685096822e-04<o:p></o:p></span></p>
<p class="p1"><span class="apple-converted-space"><span style="color:black">     
</span></span><span style="color:black">Line search: Cubic step no good, shrinking lambda, current gnorm 4.872893294880e-05 lambda=3.0804668685096822e-05<o:p></o:p></span></p>
<p class="p1"><span class="apple-converted-space"><span style="color:black">     
</span></span><span style="color:black">Line search: Cubic step no good, shrinking lambda, current gnorm 5.643043250787e-05 lambda=3.0804668685096822e-06<o:p></o:p></span></p>
<p class="p1"><span class="apple-converted-space"><span style="color:black">     
</span></span><span style="color:black">Line search: Cubic step no good, shrinking lambda, current gnorm 6.413194279696e-05 lambda=3.0804668685096827e-07<o:p></o:p></span></p>
<p class="p1"><span class="apple-converted-space"><span style="color:black">     
</span></span><span style="color:black">Line search: Cubic step no good, shrinking lambda, current gnorm 7.183345417492e-05 lambda=3.0804668685096828e-08<o:p></o:p></span></p>
<p class="p1"><span class="apple-converted-space"><span style="color:black">     
</span></span><span style="color:black">Line search: Cubic step no good, shrinking lambda, current gnorm 7.953496567312e-05 lambda=3.0804668685096829e-09<o:p></o:p></span></p>
<p class="p1"><span class="apple-converted-space"><span style="color:black">     
</span></span><span style="color:black">Line search: Cubic step no good, shrinking lambda, current gnorm 8.723647719173e-05 lambda=3.0804668685096831e-10<o:p></o:p></span></p>
<p class="p1"><span class="apple-converted-space"><span style="color:black">     
</span></span><span style="color:black">Line search: Cubic step no good, shrinking lambda, current gnorm 9.493798871875e-05 lambda=3.0804668685096832e-11<o:p></o:p></span></p>
<p class="p1"><span class="apple-converted-space"><span style="color:black">     
</span></span><span style="color:black">Line search: Cubic step no good, shrinking lambda, current gnorm 1.026395002516e-04 lambda=3.0804668685096835e-12<o:p></o:p></span></p>
<p class="p1"><span class="apple-converted-space"><span style="color:black">     
</span></span><span style="color:black">Line search: Cubic step no good, shrinking lambda, current gnorm 1.103410117889e-04 lambda=3.0804668685096835e-13<o:p></o:p></span></p>
<p class="p1"><span class="apple-converted-space"><span style="color:black">     
</span></span><span style="color:black">Line search: unable to find good step length! After 12 tries<span class="apple-converted-space"> </span><o:p></o:p></span></p>
<p class="p1"><span class="apple-converted-space"><span style="color:black">     
</span></span><span style="color:black">Line search: fnorm=7.7015115650831560e-06, gnorm=1.1034101178892401e-04, ynorm=6.2052357872955976e-03, minlambda=9.9999999999999998e-13, lambda=3.0804668685096835e-13, initial slope=-5.9313318983096354e-11<o:p></o:p></span></p>
<p class="p1"><span style="color:black">Nonlinear solve did not converge due to DIVERGED_LINE_SEARCH iterations 1<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thank you for your help.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Kind regards,<o:p></o:p></p>
<p class="MsoNormal">Karthik.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal"><span style="mso-ligatures:none;mso-fareast-language:EN-GB">-- <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><b><span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#2D2D62;mso-ligatures:none;mso-fareast-language:EN-GB">Dr. Karthik Chockalingam<o:p></o:p></span></b></p>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:black;mso-ligatures:none;mso-fareast-language:EN-GB">Senior Research Software Engineer</span><span style="font-size:10.5pt;color:black;mso-ligatures:none;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:black;mso-ligatures:none;mso-fareast-language:EN-GB">High Performance Systems Engineering Group</span><span style="font-size:10.5pt;color:black;mso-ligatures:none;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:black;mso-ligatures:none;mso-fareast-language:EN-GB">Hartree Centre | Science and Technology Facilities Council</span><span style="font-size:10.5pt;color:black;mso-ligatures:none;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#212121;mso-ligatures:none;mso-fareast-language:EN-GB"><a href="mailto:karthikeyan.chockalingam@stfc.ac.uk"><span style="color:#0563C1">karthikeyan.chockalingam@stfc.ac.uk</span></a></span><span style="color:#212121;mso-ligatures:none;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:black;mso-ligatures:none;mso-fareast-language:EN-GB"> </span><span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#414141;mso-ligatures:none;mso-fareast-language:EN-GB"> </span><span style="color:#212121;mso-ligatures:none;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#414141;mso-ligatures:none;mso-fareast-language:EN-GB"> </span></b><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#1F497D;mso-ligatures:none;mso-fareast-language:EN-GB"><img border="0" width="254" height="116" style="width:2.6458in;height:1.2083in" id="Picture_x0020_1" src="cid:image001.png@01D9E17A.4E8AA8B0" alt="signature_3970890138"></span><span style="color:#212121;mso-ligatures:none;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>