[petsc-users] problem with PetscInitialize when moving to 3.19.0
Matthew Knepley
knepley at gmail.com
Sat Apr 15 06:41:07 CDT 2023
On Sat, Apr 15, 2023 at 7:28 AM Danny Lathouwers - TNW via petsc-users <
petsc-users at mcs.anl.gov> wrote:
> 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_’).
>
PetscInitialize() only takes the "ierr" argument now.
THanks,
Matt
> 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.
>
>
--
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/20230415/c5799777/attachment-0001.html>
More information about the petsc-users
mailing list