[petsc-dev] DMSetDefaultSection destroys old sections

Chris Eldred chris.eldred at gmail.com
Thu Aug 30 17:30:40 CDT 2012


How would I use PetscObjectReference((PetscObject)section) in Fortran?

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



More information about the petsc-dev mailing list