[petsc-dev] Unwanted Fortran stub

Smith, Barry F. bsmith at mcs.anl.gov
Tue Mar 12 14:01:31 CDT 2019


  It is because you have  manual page documentation for it. The comment above it starts with /*@   if you don't want a manual page then remove the @ if you want a manual page but no stub then use /*@C

  Barry


> On Mar 12, 2019, at 1:46 PM, Zhang, Junchao via petsc-dev <petsc-dev at mcs.anl.gov> wrote:
> 
> I declared PETSC_INTERN PetscErrorCode VecLockWriteSet_Private(Vec,PetscBool) in vecimp.h and defined it in src/vec/vec/interface/rvector.c.  I used PETSC_INTERN and _Private since currently the function is only used in the Vec packaged and is not public.  I met this compilation warning 
> src/vec/vec/interface/ftn-auto/rvectorf.c:333:1: warning: implicit declaration of function ‘VecLockWriteSet_Private’ [-Wimplicit-function-declaration]
>  *__ierr = VecLockWriteSet_Private(
>  ^
> How to fix that? I do not think I need a Fortran stub for that. I found under ftn-auto, not all .c functions have a Fotran counterpart. What is the rule?
> Thanks.
> --Junchao Zhang



More information about the petsc-dev mailing list