[petsc-users] NULL section fortran

Barry Smith bsmith at mcs.anl.gov
Wed Jul 12 14:59:42 CDT 2017


  Matt needs to add something like

     PetscSection, parameter :: PETSC_NULL_SECTION = tPetscSection(-1)
     PetscSectionSym, parameter :: PETSC_NULL_SECTIONSYM = tPetscSectionSym(-1)

to src/vec/f90-mod/petscis.h in the master branch.

   Barry


> On Jul 12, 2017, at 2:52 PM, Justin Pogacnik <j.pogacnik at auckland.ac.nz> wrote:
> 
> Hello,
> 
> I'm assembling a global finite element stiffness matrix and using the DMPlexMatSetClosure command in fortran. Long ago, in the past, I've used to set the section input parameters to PETSC_NULL_OBJECT. That now returns an error -- no implicit type -- during compilation. Looking at the defined null objects for fortran I don't see a section option. What should I use to invoke the default sections?
> 
> Hope this makes sense. Thanks!
> 
> Justin



More information about the petsc-users mailing list