[petsc-dev] DMSetDefaultSection destroys old sections
Jed Brown
jedbrown at mcs.anl.gov
Thu Aug 30 17:32:29 CDT 2012
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,ierr)
>
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20120830/7590f2e2/attachment.html>
More information about the petsc-dev
mailing list