<div dir="ltr"><div style>Hi,</div>In <a href="http://www.mcs.anl.gov/petsc/petsc-current/include/petscversion.h">http://www.mcs.anl.gov/petsc/petsc-current/include/petscversion.h</a><div>there is:</div><div><pre style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap">

#define PETSC_VERSION_LT(MAJOR,MINOR,SUBMINOR)          \
  (PETSC_VERSION_RELEASE == 0 &&                        \
   (PETSC_VERSION_MAJOR < (MAJOR) ||                    \
    (PETSC_VERSION_MAJOR == (MAJOR) &&                  \
     (PETSC_VERSION_MINOR < (MINOR) ||                  \
      (PETSC_VERSION_MINOR == (MINOR) &&                \
       (PETSC_VERSION_SUBMINOR < (SUBMINOR)))))))</pre><pre style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap"><br></pre><pre style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap">Won't this always be false for release versions?</pre>

<pre style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap">We're trying to move from 3.2 and the following is evaluating to true. (I've put the new additions to petscversion.h into that file in our older builds).</pre>

<pre style="word-wrap:break-word"><font color="#000000"><span style="white-space:pre-wrap">#if PETSC_VERSION_GE(3,3,0)</span></font></pre><pre style="word-wrap:break-word"><font color="#000000"><span style="white-space:pre-wrap">//we should not get here, but we do</span></font></pre>

<pre style="word-wrap:break-word"><font color="#000000"><span style="white-space:pre-wrap"><br></span></font></pre><pre style="word-wrap:break-word"><font color="#000000"><span style="white-space:pre-wrap">when petscversion.h has </span></font></pre>

<pre style="word-wrap:break-word"><font color="#000000"><span style="white-space:pre-wrap">#define PETSC_VERSION_RELEASE    1
#define PETSC_VERSION_MAJOR      3
#define PETSC_VERSION_MINOR      2
#define PETSC_VERSION_SUBMINOR   0
#define PETSC_VERSION_PATCH      6<br></span></font></pre><pre style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap">Thanks,</pre><pre style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap">Jim</pre>

<div><br></div>-- <br>Jim Fonseca, PhD<div>Research Scientist</div><div>Network for Computational Nanotechnology</div><div>Purdue University</div><div>765-496-6495<br><div><a href="http://www.jimfonseca.com" target="_blank">www.jimfonseca.com</a></div>

<div><br><div><br></div></div></div>
</div></div>