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.
I don't know if this is a good model, but it is the current model.
Barry
> On Mar 10, 2017, at 8:52 AM, Eric Chamberland
> <[email protected]> wrote:
>
> Hi,
>
> Juste compiled with last night tarball of petsc-master and found that
> MatGetSubMatrix has changed to MatCreateSubMatrix.
>
> Fine, but I can't use the petscversion.h to switch into my code with #ifdef
> over any of:
>
> #define PETSC_VERSION_MAJOR 3
> #define PETSC_VERSION_MINOR 7
> #define PETSC_VERSION_SUBMINOR 5
> #define PETSC_VERSION_PATCH 0
>
> since it is unchanged with 3.7.5.0 which has a different api.
>
> Would someone please change the version?
>
> Thanks,
>
> Eric