[petsc-users] problem with PetscInitialize when moving to 3.19.0

Danny Lathouwers - TNW D.Lathouwers at tudelft.nl
Sat Apr 15 06:27:45 CDT 2023


Dear community,

I am transitioning a working Fortran code based on version 3.10.4 to version 3.19.0.
The code compiles except for one problem during linking where PetscInitialize can no longer be found (undefined reference to `petscinitialize_’).

I am attaching the piece of code where the call is made. Removing the call makes the whole code compile so this is the only error.
I added the include line of petsc.h as the documentation seems to imply this, but this did not help.

Any help is appreciated.

Thanks,
Danny.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20230415/1d9d8473/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: petsc_mod.f90
Type: application/octet-stream
Size: 1112 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20230415/1d9d8473/attachment.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20230415/1d9d8473/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1674 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20230415/1d9d8473/attachment.p7s>


More information about the petsc-users mailing list