fabs().<br><br> Matt<br><br><div class="gmail_quote">On Fri, Jan 15, 2010 at 1:25 PM, Ryan Yan <span dir="ltr"><<a href="mailto:vyan2000@gmail.com">vyan2000@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<span style="font-family: Simsun; font-size: 16px;"><div style="margin: 8px;"><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><font color="#888888">Yan</font></div></div></span>
</blockquote></div><br><br clear="all"><br>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener<br>