[petsc-dev] Unwanted Fortran stub

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


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/255499b4/attachment.html>


More information about the petsc-dev mailing list