On Tue, Aug 14, 2012 at 4:47 PM, Jed Brown <jedbrown at mcs.anl.gov> wrote:
> On Tue, Aug 14, 2012 at 3:44 PM, Matthew Knepley <knepley at gmail.com>wrote: > >> You can, but the setter routines interpret NULL as "ignore", i.e. >>> >>> if (func) ctx->func = func; >>> >> >> Does this make sense to anyone? Can we remove that if? > > > Then we would have to revisit lots of locations and get the old value > before resetting it. Passing NULL was a convenience. > Ah, I see. This is crappy design. Matt -- What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead. -- Norbert Wiener -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20120814/8d26d03c/attachment.html>