<p dir="ltr">Yikes, that should be RELEASE==1. Looks like I totally botched this:</p>
<p dir="ltr"><a href="https://bitbucket.org/petsc/petsc/commits/03354681f90b4c94467f09fd38f90b774d661d87">https://bitbucket.org/petsc/petsc/commits/03354681f90b4c94467f09fd38f90b774d661d87</a></p>
<p dir="ltr">Will fix when I have a keyboard.</p>
<p dir="ltr">But how can you have this macro with 3.2?</p>
<div class="gmail_quote">On Jun 15, 2013 7:54 AM, "Jim Fonseca" <<a href="mailto:jefonseca@gmail.com">jefonseca@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div>Hi,</div>InĀ <a href="http://www.mcs.anl.gov/petsc/petsc-current/include/petscversion.h" target="_blank">http://www.mcs.anl.gov/petsc/petsc-current/include/petscversion.h</a><div>there is:</div><div><pre style="white-space:pre-wrap;word-wrap:break-word">


#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="white-space:pre-wrap;word-wrap:break-word"><br></pre><pre style="white-space:pre-wrap;word-wrap:break-word">Won't this always be false for release versions?</pre>


<pre style="white-space:pre-wrap;word-wrap:break-word">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="white-space:pre-wrap;word-wrap:break-word">Thanks,</pre><pre style="white-space:pre-wrap;word-wrap:break-word">Jim</pre>

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

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