<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <font face="Droid Serif">Hi PETSc Experts!<br>
      <br>
      I am updating a Fortran code that use PETSc 3.7 to version 3.9.2
      (from git repository).<br>
      <br>
      Such code declares:<br>
      <br>
      Mat mat<br>
      <br>
      and used it as an integer, for example, to assign an initial value
      and test it to know if the matrix has been created by PETSc.<br>
      <br>
      data mat/-1/<br>
      if (mat .eq. -1) then<br>
      <br>
      With the new PETSc Fortran modules the compiler complains about
      this and stops.<br>
      <br>
      Is there a better way to achieve this? So that I do not have to
      set an predefined value to Mat type to test if it was already
      created by PETSc? <br>
      <br>
      If not, Is there a way to access the value in mat?<br>
      Looking at the source code type(tMat) has "v" variable, so could I
      used as mat%v?<br>
      <br>
      Thanks for your help,<br>
      <br>
      Hector<br>
    </font>
  </body>
</html>