[petsc-users] Question regrading SNES tutorial ex28

Gautam Bisht gbisht at lbl.gov
Wed May 13 16:49:19 CDT 2015


Hi PETSc team,

Any insights into why the residual equation for U & K are scaled by dx in
this example (line no. 48-49 and 68 of in ex28.c
<https://bitbucket.org/petsc/petsc/src/8db46702c31aaef455dabea2fa9d7dd897381b5d/src/snes/examples/tutorials/ex28.c?at=master#cl-8>
)?

Additionally, the comment regarding algebraic equation is incorrect.

 * Algebraic (K):

 *     exp(k-1) + k = u + 1/(1/(1+u) + 1/(1+u_x^2))"


should be changed to

 * Algebraic (K):

 *     exp(k-1) + k = 1/(1/(1+u) + 1/(1+u_x^2))"


Thanks,
-Gautam.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20150513/92084399/attachment.html>


More information about the petsc-users mailing list