<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi Mark,</p>
    <p>I'm not sure what's wrong.</p>
    <p>In VS2017 + Intel oneAPI,</p>
    <p>even after adding the full path:</p>
    <p>#include
<D:/Lib/petsc-3.15.0_win64_impi_vs2017/include/petsc/finclude/petscksp.h></p>
    <p>I got a new error:</p>
    <p><i><b>Compiling with Intel® Fortran Compiler Classic 2021.2.0
          [Intel(R) 64]...</b></i><i><b><br>
        </b></i><i><b>ex2f.F90</b></i><i><b><br>
        </b></i><i><b>petscksp.h(8): #error: can't find include file:
          petsc/finclude/petscpc.h</b></i><i><b><br>
        </b></i><i><b>ex2f : error PRJ0019: A tool returned an error
          code</b></i></p>
    <p>Note that I have also specified the include dir in the
      properties:</p>
    <p><i><b>Debug/;$(PETSC_DIR);$(PETSC_DIR)/include;$(I_MPI_ONEAPI_ROOT)/include</b></i></p>
    <p>I also tried in cygwin:</p>
    <p><i><b>export PETSC_DIR=`pwd`</b></i><i><b><br>
        </b></i><i><b>export PETSC_ARCH=petsc-3.15.0_win64_impi_vs2017</b></i><i><b><br>
        </b></i><i><b>make ex2f</b></i></p>
    <p>I got the error:</p>
    <p><i><b>$ make ex2f</b></i><i><b><br>
        </b></i><i><b>makefile:41:
/cygdrive/d/Lib/petsc-3.15.0_win64_impi_vs2017/share/petsc/examples/src/ksp/ksp/tutorials/lib/petsc/conf/te</b></i><i><b>st:
          No such file or directory</b></i><i><b><br>
        </b></i><i><b>make: *** No rule to make target
'/cygdrive/d/Lib/petsc-3.15.0_win64_impi_vs2017/share/petsc/examples/src/ksp/ksp/tutori</b></i><i><b>als/lib/petsc/conf/test'. 
          Stop.</b></i></p>
    <p>Somehow it just doesn't work. Building the library has no problem
      though.</p>
    <p>I wonder what's wrong.<br>
    </p>
    <p><br>
    </p>
    <div class="moz-signature">
      <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 class="moz-txt-link-freetext" href="http://tayweebeng.wixsite.com/website">http://tayweebeng.wixsite.com/website</a></u></font><br>
        Youtube research showcase: <u><font color="#3366ff"><a class="moz-txt-link-freetext" href="https://goo.gl/PtvdwQ">https://goo.gl/PtvdwQ</a></font></u><br>
        linkedin: <u><font color="#3366ff"><a class="moz-txt-link-freetext" href="https://www.linkedin.com/in/tay-weebeng">https://www.linkedin.com/in/tay-weebeng</a></font></u><br>
        ================================================<br>
      </p>
    </div>
    <div class="moz-cite-prefix">On 14/4/2021 9:31 am, Mark Adams wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CADOhEh53FZLqwCETYTYdtuso_P0_6qcyPf-wvxSDUywiSWaPTQ@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <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" moz-do-not-send="true">http://tayweebeng.wixsite.com/website</a></u></font><br>
                  Youtube research showcase: <u><font color="#3366ff"><a
                        href="https://goo.gl/PtvdwQ" target="_blank"
                        moz-do-not-send="true">https://goo.gl/PtvdwQ</a></font></u><br>
                  linkedin: <u><font color="#3366ff"><a
                        href="https://www.linkedin.com/in/tay-weebeng"
                        target="_blank" moz-do-not-send="true">https://www.linkedin.com/in/tay-weebeng</a></font></u><br>
                  ================================================<br>
                </p>
              </div>
            </div>
          </blockquote>
        </div>
      </div>
    </blockquote>
  </body>
</html>