<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">Hi Matt,<div><br></div><div>I just solved it :-)</div><div>the problem is the ‘only’ in the use statement. After removing it the code compiles and links flawlessly.</div><div><br></div><div>Many thanks for your suggestions !</div><div><br></div><div>Now off to testing this version.</div><div><br></div><div>Danny.</div><div><br></div><div><br></div><div><div><br><blockquote type="cite"><div>On 15 Apr 2023, at 13:58, Matthew Knepley <knepley@gmail.com> wrote:</div><br class="Apple-interchange-newline"><div><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr"><div dir="ltr">On Sat, Apr 15, 2023 at 7:48 AM Danny Lathouwers - TNW <<a href="mailto:D.Lathouwers@tudelft.nl">D.Lathouwers@tudelft.nl</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>Dear Matt,<div><br></div><div>Thanks for the quick reply.</div><div><br></div><div>This however does not resolve the problem. </div><div>It simply cannot find the routine at all during linking.</div></div></blockquote><div><br></div><div>Perhaps your link line is wrong. Let's start with a PETSc example. Can you make Vec ex1f90/F90?</div><div><br></div><div> cd $PETSC_DIR</div><div> cd src/vec/vec/tutorials/</div><div> make ex1f90</div><div><br></div><div>That will also show the correct link line.</div><div><br></div><div> Thanks,</div><div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div>Danny.<br><div><br><blockquote type="cite"><div>On 15 Apr 2023, at 13:41, Matthew Knepley <<a href="mailto:knepley@gmail.com" target="_blank">knepley@gmail.com</a>> wrote:</div><br><div><div dir="ltr"><div dir="ltr">On Sat, Apr 15, 2023 at 7:28 AM Danny Lathouwers - TNW via petsc-users <<a href="mailto:petsc-users@mcs.anl.gov" target="_blank">petsc-users@mcs.anl.gov</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>Dear community,<div><br></div><div>I am transitioning a working Fortran code based on version 3.10.4 to version 3.19.0.<div>The code compiles except for one problem during linking where PetscInitialize can no longer be found (<span style="font-family:Menlo;font-size:11px">undefined reference to `petscinitialize_</span><font face="Menlo"><span style="font-size:11px">’</span></font>).</div></div></div></blockquote><div><br></div><div>PetscInitialize() only takes the "ierr" argument now.</div><div><br></div><div> THanks,</div><div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div><div>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.</div><div>I added the include line of petsc.h as the documentation seems to imply this, but this did not help.</div><div><br></div><div>Any help is appreciated.</div><div><br></div><div>Thanks,</div><div>Danny.</div></div></div><div><div><div></div><div><br></div></div></div></blockquote></div><br clear="all"><div><br></div><span>-- </span><br><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="https://urldefense.com/v3/__http://www.cse.buffalo.edu/*knepley/__;fg!!PAKc-5URQlI!-OWBkqVFDqAI4Ms8gzTOWnpwMl_4z-6mzQx4Sfmovxf0fGt2LSm-EvjTkgVLql5Zdd9d3sj65tOuHy_oRVcv$" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>
</div></blockquote></div><br></div></div></blockquote></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="https://urldefense.com/v3/__http://www.cse.buffalo.edu/*knepley/__;fg!!PAKc-5URQlI!_K9dpY4jEyDTnDs5tI9e-eZsOqoMPtUAE7xPBnDp7NCsKd4e7wdEZwuIMuVCzUNCSzAcfrWdYr_XlEb8J70_$" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>
</div></blockquote></div><br></div></body></html>