[petsc-users] scalar abs()

Ryan Yan vyan2000 at gmail.com
Fri Jan 15 13:25:58 CST 2010

Hi All,
I am solving nonlinear BVP on structure grid using DM.

For the variable v, I have the following term included in my residual:

My question is:
In DMMGSetSNESLocal(), for the FormFunctionLocal(), at interior node i,
What is the right PETSc function to use for the abs in:
abs(x[i].v) * x[i].v

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20100115/03e8124b/attachment.htm>

More information about the petsc-users mailing list