[petsc-users] question about Neumann boundary condition

Jed Brown jedbrown at mcs.anl.gov
Mon Dec 5 21:36:28 CST 2011


There is not a PETSc function to set Dirichlet conditions. There are many
ways to do it, you should pick a way they works well for your problem.

I think you might misunderstand KSPSetNullSpace.
On Dec 5, 2011 6:59 PM, "Hailong Xiao" <xiaohl1986 at gmail.com> wrote:

> Hi
>
> I am solving an elliptic problem with Neumann boundary condition with dmda
> routines by snes solver.
> I set up the residue by DMDASetLocalFunction.
> Besides the way like fix the first value to be one by myself, is there way
> to do it by petsc routine? like the KSPSetNullSpace() rountine does?
>
> --
> Hailong
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20111205/8fcb342e/attachment.htm>


More information about the petsc-users mailing list