[petsc-users] PetscSection: Fortran interfaces

Barry Smith bsmith at petsc.dev
Sat Feb 3 10:36:35 CST 2024


  The Fortran "stubs" (subroutines) should be in $PETSC_ARCH/src/vec/is/section/interface/ftn-auto/sectionf.c and compiled and linked into the PETSc library.

  The same tool that builds the interfaces in $PETSC_ARCH/src/vec/f90-mod/ftn-auto-interfaces/petscpetscsection.h90,  also builds the stubs so it is surprising one would exist but not the other.

  Barry


> On Feb 3, 2024, at 11:27 AM, Martin Diehl <martin.diehl at kuleuven.be> wrote:
> 
> Dear PETSc team,
> 
> I currently can't make use of Fortran interfaces for "section".
> In particular, I can't see how to use
> 
> PetscSectionGetFieldComponents                                        
> PetscSectionGetFieldDof                                               
> PetscSectionGetFieldOffset
> 
> The interfaces for them are created in $PETSC_ARCH/src/vec/f90-mod/ftn-
> auto-interfaces/petscpetscsection.h90, but it seems that they are not
> exposed to the public.
> 
> Could you give me a hint how to use them or fix this?
> 
> with best regards,
> Martin
> 
> 
> -- 
> KU Leuven
> Department of Computer Science
> Department of Materials Engineering
> Celestijnenlaan 200a
> 3001 Leuven, Belgium
> 



More information about the petsc-users mailing list