<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div>I don't think it's a problem with preprocessing flags, on Linux it should be automatic for .F90 files. I can check tomorrow if it works with an older ifort. What's really weird is that the PETSC_MAJOR and PETSC_MINOR macros work just fine, as far as i
 can tell they're defined in the same file as PETSC_VERSION_GE etc.</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div style="font-size:75%;color:#575757">Sent from my VT-102</div>
</div>
<br>
Jed Brown <jedbrown@mcs.anl.gov> skrev:<br>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">Åsmund Ervik <asmund.ervik@ntnu.no> writes:<br>
> Our nightly Jenkins run revealed that PETSC_VERSION_GE does not work<br>
> well with ifort (version 14.0). (It works fine with gfortran and<br>
> pgf90.) ifort produces the error message<br>
><br>
> petscmod.F90(232): #error: #if: syntax error.<br>
<br>
Maybe the wrong option indicating that you want preprocessing?  It would<br>
be useful to get to the bottom of it.<br>
<br>
> I couldn't figure out much from this error message, but the following<br>
> seems to work on all our compilers:<br>
><br>
> #if (PETSC_MAJOR >= 3) && (PETSC_MINOR >= 5)<br>
> ... PETSC_DEFAULT_REAL<br>
> #else<br>
> ... PETSC_DEFAULT_DOUBLE_PRECISION<br>
> #endif<br>
<br>
</div>
</span></font>
</body>
</html>