[petsc-users] Petsc versions

Matthew Knepley knepley at gmail.com
Sat Mar 29 16:18:17 CDT 2014

On Sat, Mar 29, 2014 at 4:14 PM, Mark Adams <mfadams at lbl.gov> wrote:

> I have this code:
>   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?


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20140329/a3c8822e/attachment.html>

More information about the petsc-users mailing list