[petsc-dev] What part of DMPlexProjectFunctionLocal restricts to the boundary in snes ex12?

Jed Brown jedbrown at mcs.anl.gov
Wed Nov 20 00:32:25 CST 2013


Geoffrey Irving <irving at naml.us> writes:
> I was missing the obvious INSERT_BC_VALUES parameter in the call to
> DMPlexProjectFunctionLocal.  It's a shame one has to loop over the
> interior just to set the boundary, but it does seem like the code
> produces the correct answer.

You can of course build an index to loop over any chosen feature fast.
But with no index, an iterator for a feature would still involve
visiting everything.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20131119/c01789bb/attachment.sig>


More information about the petsc-dev mailing list