[petsc-dev] Unwanted Fortran stub

Zhang, Junchao jczhang at mcs.anl.gov
Tue Mar 12 14:03:46 CDT 2019

Got it.  Thanks.
--Junchao Zhang

On Tue, Mar 12, 2019 at 2:01 PM Smith, Barry F. <bsmith at mcs.anl.gov<mailto:bsmith at mcs.anl.gov>> wrote:

  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


> On Mar 12, 2019, at 1:46 PM, Zhang, Junchao via petsc-dev <petsc-dev at mcs.anl.gov<mailto: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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20190312/e7959574/attachment-0001.html>

More information about the petsc-dev mailing list