[petsc-users] flag -citations to PETSc

Åsmund Ervik asmund.ervik at ntnu.no
Wed Feb 12 10:59:31 CST 2014


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.


Sent from my VT-102

Jed Brown <jedbrown at mcs.anl.gov> skrev:
Åsmund Ervik <asmund.ervik at ntnu.no> writes:
> Our nightly Jenkins run revealed that PETSC_VERSION_GE does not work
> well with ifort (version 14.0). (It works fine with gfortran and
> pgf90.) ifort produces the error message
>
> petscmod.F90(232): #error: #if: syntax error.

Maybe the wrong option indicating that you want preprocessing?  It would
be useful to get to the bottom of it.

> I couldn't figure out much from this error message, but the following
> seems to work on all our compilers:
>
> #if (PETSC_MAJOR >= 3) && (PETSC_MINOR >= 5)
> ... PETSC_DEFAULT_REAL
> #else
> ... PETSC_DEFAULT_DOUBLE_PRECISION
> #endif

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20140212/355c5ce0/attachment.html>


More information about the petsc-users mailing list