<div dir="ltr"><div dir="ltr">PETSc has changed Fortran syntax since v3.9. You should upgrade. Look at examples for how to use modules etc. <div><br></div><div><br></div></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>
    <p><i><b>Compiling with Intel® Fortran Compiler Classic 2021.2.0
          [Intel(R) 64]...</b></i><i><b><br>
        </b></i><i><b>global.F90</b></i><i><b><br>
        </b></i><i><b>global.F90(3): #error: can't find include file:
          petsc/finclude/petsc.h</b></i><i><b><br>
        </b></i><i><b>global.F90(937): #error: can't find include file:
          petsc/finclude/petsc.h</b></i></p></div></blockquote><div><br></div><div>It looks like you might not have your PETSC_ARCH variable set. You should get a full path to /finclude/petsc.h. Look at the compile line.</div><div><br></div><div>There are PETSc examples that you you can make to see an example of a correct make. For example, </div><div>> cd petsc/src/ksp/ksp/tutorials</div><div> > make ex2f </div><div><br></div><div>should make an executable and you can look at the compile and link lines, and compare to what you are using.</div><div><br></div><div>Mark</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><p><br>
    </p>
    <div>-- <br>
      <p>Thank you very much.<br>
        <br>
        Yours sincerely,<br>
        <br>
        ================================================<br>
        TAY Wee-Beng 郑伟明 (Zheng Weiming)<br>
        Personal research webpage: <font color="#3366ff"><u><a href="http://tayweebeng.wixsite.com/website" target="_blank">http://tayweebeng.wixsite.com/website</a></u></font><br>
        Youtube research showcase: <u><font color="#3366ff"><a href="https://goo.gl/PtvdwQ" target="_blank">https://goo.gl/PtvdwQ</a></font></u><br>
        linkedin: <u><font color="#3366ff"><a href="https://www.linkedin.com/in/tay-weebeng" target="_blank">https://www.linkedin.com/in/tay-weebeng</a></font></u><br>
        ================================================<br>
      </p>
    </div>
  </div>

</blockquote></div></div>