Skip to content

Add support for users to pass in FFLAGS the option for promoting integers to 8 bytes.

Barry Smith requested to merge barry/2020-01-15/support-default-integer-8 into master

Tested for ifort and gfortran

Tested with MPICH and OpenMPI and MPI-Uni

Since MPI does not provide any mechanism for integer promotion the code very crudely adjusts the values in the mpif.h to mark them as 4 byte integers this is not neccessary portable for all MPI implementations

This is an extremely fragile option that we should probably not be supporting.

Users must insure their Fortran codes passes only 4 byte integers to MPI calls

PETSc Fortran examples were all fixed to explicitly use 4 byte integers for MPI calls.

Commit-type: portability-fix, testing-fix, feature Time: 20 hours Reported-by: Dmitry Melnichuk dmitry.melnichuk@geosteertech.com

Merge request reports