[petsc-dev] petscversion.h unchanged but API changed for MatGetSubMatrix and others

Jed Brown jed at jedbrown.org
Fri Mar 10 13:10:56 CST 2017


Barry Smith <bsmith at mcs.anl.gov> writes:

>    Eric,
>
>       The model we have followed is that master retains the version number of the latest patched release and then at the time of a release the version number is increased.  For releases  PETSC_VERSION_RELEASE  is defined to be 1 while for master PETSC_VERSION_RELEASE  is defined to be 0. Thus if you want to switch between master and release you need to also include a check on the PETSC_VERSION_RELEASE value.

PETSC_VERSION_LT and related comparison macros handle non-RELEASE as
+Inf for the purpose of comparison.  I recommend using those macros.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20170310/99b236b8/attachment.sig>


More information about the petsc-dev mailing list