[petsc-dev] http://www.c-faq.com/aryptr/non0based.html
Barry Smith
bsmith at mcs.anl.gov
Tue Mar 30 12:30:38 CDT 2010
What do the PETSc developers think of this? Is it "otherwise, the
behavior is undefined, even if the pointer is not dereferenced."?
Whenever we work with global indices like in FormFunctionLocal()
we do this.
Is PETSc wrong to ever do this? Is there any other way to allow
users to work with global indices in a simple way? Do we need to strip
out all the FormFunctionLocals() from PETSc? Not the end of the world
but it provides such a nice simple interface for simple problems it
seems a pity to toss it.
Thanks
Barry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20100330/56e3cfee/attachment.html>
More information about the petsc-dev
mailing list