Skip to content

Commit

Permalink
Use selected_int_kind(13) to get an 8-byte integer
Browse files Browse the repository at this point in the history
Needed for tests to compile with NAG compiler. See Issue #5.
  • Loading branch information
rljacob committed Dec 5, 2014
1 parent ea56905 commit 05b0b62
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions mpi-serial/mpif.F90
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,8 @@

Module mpi
implicit none
! MPI_ADDRESS_KIND: typekind 4 should be 4 byte integer,
! and typekind 8 be 8-byte integer, etc.
#ifdef SIZEOF_LONG
INTEGER, PARAMETER, PUBLIC :: MPI_ADDRESS_KIND=SIZEOF_LONG
#else
INTEGER, PARAMETER, PUBLIC :: MPI_ADDRESS_KIND=8
#endif
! MPI_ADDRESS_KIND: need an 8-byte integer.
INTEGER, PARAMETER, PUBLIC :: MPI_ADDRESS_KIND=selected_int_kind(13)


include "mpif.h"
Expand Down

0 comments on commit 05b0b62

Please sign in to comment.