On Sat, Mar 29, 2014 at 4:14 PM, Mark Adams <[email protected]> wrote:

> I have this code:
>
> #if PETSC_VERSION_GT(3,4,0) || !PETSC_VERSION_RELEASE
>   ierr = KSPSetOperators(m_ksp,m_mat,m_mat);CHKERRQ(ierr);
> #else
>           ierr =
> KSPSetOperators(m_ksp,m_mat,m_mat,SAME_NONZERO_PATTERN);CHKERRQ(ierr);
> #endif
>
> And it fails with a v3.4 at TACC (eg /opt/apps/intel13/mvapich2_1
> _9/petsc/3.4/sandybridge/include).  It fails with too few arguments in
> the first call.  So my #ifdefs are not working correctly.  I want the
> second branch.  What would be the correct syntax for this?
>

Are you sure it is not 3.4.x?

   Matt

-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener

Reply via email to