On Thu, Aug 30, 2012 at 5:30 PM, Chris Eldred <chris.eldred at gmail.com>wrote:
> How would I use PetscObjectReference((PetscObject)section) in Fortran? > call PetscObjectReference(section) Matt > On Thu, Aug 30, 2012 at 4:16 PM, Jed Brown <jedbrown at mcs.anl.gov> wrote: > > On Thu, Aug 30, 2012 at 5:12 PM, Matthew Knepley <knepley at gmail.com> > wrote: > >> > >> Its not wrong. This is the way I wanted it. You set the PetscSection and > >> give up control. If you > >> do not want to give up control, then call PetscObjectReference() before > >> passing it in. > > > > > > Since this is (a) different from everything else in PETSc and (b) not > > explicitly documented, it is doubly wrong. > > > > -- > Chris Eldred > DOE Computational Science Graduate Fellow > Graduate Student, Atmospheric Science, Colorado State University > B.S. Applied Computational Physics, Carnegie Mellon University, 2009 > chris.eldred at gmail.com > -- 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/20120830/f898d7df/attachment.html>