[petsc-dev] Fortran interfaces for VecGetLocalVector and VecRestoreLocalVector
Satish Balay
balay at mcs.anl.gov
Mon Jul 18 13:56:33 CDT 2016
yes - these 2 functions can have fortran stubs autogenerated.
Removing the 'C' - and then running configure [which does an
equivalent of 'make allfortranstubs'] - and 'make all' would be the
steps..
Satih
On Mon, 18 Jul 2016, Patrick Sanan wrote:
> I'd like to use VecGetLocalVector and VecRestoreLocalVector from Fortran.
>
> It appears that these are not covered by the Fortran interface, based
> on the fact that they don't appear in my include/petsc/finclude
> directory anywhere, even though other related functions do.
>
> This seems to be confirmed by the fact that this function has the
> "comment-only" Sowing block in src/vec/vec/interface/rvector.c and
> does not appear in the ftn-custom (or f90-custom) directory there.
>
> I'm new to using Fortran directly with PETSc. I can delete the "C"
> from the Sowing blocks, rebuild the library, and link, but I'm not
> confident enough to say that this worked yet. Should that be all that
> is required to make these functions available?
>
More information about the petsc-dev
mailing list