Re: [petsc-dev] DMSetDefaultSection destroys old sections
On Thu, Aug 30, 2012 at 5:30 PM, Chris Eldred <[email protected]>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 <[email protected]> wrote:
On Thu, Aug 30, 2012 at 5:12 PM, Matthew Knepley <[email protected]> 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 [email protected]
-- 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
participants (1)
-
Matthew Knepley