<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sat, Mar 29, 2014 at 4:14 PM, Mark Adams <span dir="ltr"><<a href="mailto:mfadams@lbl.gov" target="_blank">mfadams@lbl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div>I have this code:</div><div><br></div><div>#if PETSC_VERSION_GT(3,4,0) || !PETSC_VERSION_RELEASE</div><div><span style="white-space:pre-wrap"> </span> ierr = KSPSetOperators(m_ksp,m_mat,m_mat);CHKERRQ(ierr);</div>
<div>#else</div><div> ierr = KSPSetOperators(m_ksp,m_mat,m_mat,SAME_NONZERO_PATTERN);CHKERRQ(ierr);</div><div>#endif</div><div><br></div><div>And it fails with a v3.4 at TACC (eg <span style="font-size:13.333333969116211px;font-family:arial,sans-serif">/opt/apps/intel13/mvapich2_</span><u style="font-size:13.333333969116211px;font-family:arial,sans-serif"></u><span style="font-size:13.333333969116211px;font-family:arial,sans-serif">1</span><span style="font-size:13.333333969116211px;font-family:arial,sans-serif">_9/petsc/3.4/sandybridge/</span><u style="font-size:13.333333969116211px;font-family:arial,sans-serif"></u><span style="font-size:13.333333969116211px;font-family:arial,sans-serif">inclu</span><span style="font-size:13.333333969116211px;font-family:arial,sans-serif">de). 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?</span></div>
</div>
</blockquote></div><br>Are you sure it is not 3.4.x?</div><div class="gmail_extra"><br></div><div class="gmail_extra"> Matt<br clear="all"><div><br></div>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>
-- Norbert Wiener
</div></div>