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

Barry Smith bsmith at mcs.anl.gov
Fri Mar 10 10:59:39 CST 2017


      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.


> On Mar 10, 2017, at 8:52 AM, Eric Chamberland <Eric.Chamberland at giref.ulaval.ca> 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_PATCH      0
> since it is unchanged with which has a different api.
> Would someone please change the version?
> Thanks,
> Eric

More information about the petsc-dev mailing list