Huh? I would do this, regardless of whether 3.10 or 4.0 is the next release. (It'll be 3.10, but you don't need to care.)
#if PETSC_VERSION_GE(3,10,0) new interface in 'master' #elif PETSC_VERSION_GE(3,8,0) interface in v3.8.x and v3.9.x #else interface in v3.7.x and earlier #endif Satish Balay <ba...@mcs.anl.gov> writes: > Hm - for safeguards - I guess one could use PETSC_VERSION_LT(3,9,99) as > equivalent to PETSC_VERSION_LT(3,10,0) > > Satish > > On Thu, 12 Jul 2018, Kong, Fande wrote: > >> I want to know this info, and I can put some safeguard in the code. >> >> Thanks, >> >> Fande, >>