<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
    <title></title>
  </head>
  <body text="#000000" bgcolor="#ffffff">
    You can use your own petsc.h <br>
    <br>
    #include <petscversion.h><br>
    #if (PETSC_VERSION_MAJOR==3 && PETSC_VERSION_MINOR<=5) <br>
    #include <finclude/petsc.h90><br>
    #else<br>
    #include <petsc-finclude/petsc.h90><br>
    #endif<br>
    <br>
    which you can then include in your code as ...<br>
    <br>
    program foo<br>
    #include "petsc.h"<br>
    ...<br>
    end program foo<br>
    <br>
    Tabrez<br>
    <br>
    On 04/09/2015 12:55 PM, Juris Vencels wrote:
    <blockquote cite="mid:5526BD2F.4000109@gmail.com" type="cite">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      Hi,<br>
      <br>
      I am using PETSc Fortran interface and
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      FindPETSc.cmake script to find PETSc.<br>
      <a moz-do-not-send="true" class="moz-txt-link-freetext"
href="https://github.com/jedbrown/cmake-modules/blob/master/FindPETSc.cmake">https://github.com/jedbrown/cmake-modules/blob/master/FindPETSc.cmake</a><br>
      <br>
      PETSc from WEB has folder include folder:<br>
          include/finclude<br>
      <br>
      while PETSc from git has folder:<br>
          include/petsc-finclude<br>
      <br>
      Is there a way to make it compatible between different versions?<br>
      <br>
      Thanks!<br>
    </blockquote>
  </body>
</html>