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);
#endifAnd 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?
