Re: [petsc-dev] Next major release is 4.0 or 3.10?

2018-07-13 Thread Kong, Fande
Thanks so much,

I will try your guys' suggestions.


Fande,

On Thu, Jul 12, 2018 at 11:26 PM, Jed Brown  wrote:

> 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  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,
> >>
>


Re: [petsc-dev] Next major release is 4.0 or 3.10?

2018-07-12 Thread Jed Brown
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  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,
>> 


Re: [petsc-dev] Next major release is 4.0 or 3.10?

2018-07-12 Thread Satish Balay
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,
> 



Re: [petsc-dev] Next major release is 4.0 or 3.10?

2018-07-12 Thread Smith, Barry F.
  3.10 unless something important happens very soon


> On Jul 12, 2018, at 5:12 PM, Kong, Fande  wrote:
> 
> I want to know this info, and I can put some safeguard in the code.  
> 
> Thanks,
> 
> Fande,