[petsc-users] flag -citations to PETSc

Jed Brown jedbrown at mcs.anl.gov
Wed Feb 12 09:11:08 CST 2014


Å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 --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20140212/d0ef17dc/attachment.pgp>


More information about the petsc-users mailing list