<span class="Apple-style-span" style="font-family: Simsun; font-size: 16px; "><div style="margin-top: 8px; margin-right: 8px; margin-bottom: 8px; margin-left: 8px; font: normal normal normal small/normal arial; "><div>Hi All,</div>
<div>I am solving nonlinear BVP on structure grid using DM.<br></div><div><br></div><div>For the variable v, I have the following term included in my residual:</div>abs(v)*v<br><br><div>My question is:<br>In DMMGSetSNESLocal(), for the FormFunctionLocal(), at interior node i,<br>
What is the right PETSc function to use for the abs in:<br>abs(x[i].v) * x[i].v<br><br>Thanks,<br>Yan</div></div></span>