[petsc-users] Petsc versions
Mark Adams
mfadams at lbl.gov
Sat Mar 29 16:14:17 CDT 2014
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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20140329/3657ce54/attachment.html>
More information about the petsc-users
mailing list