[petsc-users] Fortran: undefined reference to petscsfdistributesection
Matthew Knepley
knepley at gmail.com
Mon Dec 3 07:22:52 CST 2018
I need to write a custom Fortran stub for this one. I will get it done as
soon as possible.
Thanks,
Matt
On Sat, Dec 1, 2018 at 7:16 PM Danyang Su via petsc-users <
petsc-users at mcs.anl.gov> wrote:
> Hi All,
>
> I got a simple compilation error when use PetscSFDistributeSection in
> Fortran. It looks like the required head files are included and the
> parameters are correctly defined. However, when compile the code, I got
> error undefined reference to `petscsfdistributesection_'. The code is
> shown below. Did I miss anything here?
>
> #include <petsc/finclude/petscsys.h>
> #include <petsc/finclude/petscvec.h>
> #include <petsc/finclude/petscdm.h>
> #include <petsc/finclude/petscdmplex.h>
> use petscsys
> use petscvec
> use petscdm
> use petscdmplex
>
> implicit none
>
> PetscSection :: section, section_seq
> PetscSF :: migrationsf_inv, sf_natural
> Vec :: vec_global, vec_natural
> PetscErrorCode :: ierr
>
> ...
>
> call PetscSFDistributeSection(migrationsf_inv,section, &
> PETSC_NULL_INTEGER,section_seq,ierr)
> CHKERRQ(ierr)
>
>
> call PetscSFDistributeSection(migrationsf_inv,section, &
> PETSC_NULL_INTEGER,section_seq,ierr)
> CHKERRQ(ierr)
>
> Thanks,
>
> Danyang
>
>
--
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
https://www.cse.buffalo.edu/~knepley/ <http://www.cse.buffalo.edu/~knepley/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20181203/87910aaf/attachment.html>
More information about the petsc-users
mailing list