summaryrefslogtreecommitdiffstats
path: root/m4/aclocal_fc.f90
diff options
context:
space:
mode:
Diffstat (limited to 'm4/aclocal_fc.f90')
-rw-r--r--m4/aclocal_fc.f9027
1 files changed, 26 insertions, 1 deletions
diff --git a/m4/aclocal_fc.f90 b/m4/aclocal_fc.f90
index 68a8f1b..d485f77 100644
--- a/m4/aclocal_fc.f90
+++ b/m4/aclocal_fc.f90
@@ -55,6 +55,31 @@ PROGRAM PROG_FC_HAVE_F2003_REQUIREMENTS
ptr = C_LOC(ichr(1:1))
END PROGRAM PROG_FC_HAVE_F2003_REQUIREMENTS
+!---- START ----- Check to see C_BOOL is different from LOGICAL
+MODULE l_type_mod
+ USE ISO_C_BINDING
+ INTERFACE h5t
+ MODULE PROCEDURE h5t_c_bool
+ MODULE PROCEDURE h5t_logical
+ END INTERFACE
+CONTAINS
+ SUBROUTINE h5t_c_bool(lcb)
+ LOGICAL(KIND=C_BOOL) :: lcb
+ END SUBROUTINE h5t_c_bool
+ SUBROUTINE h5t_logical(l)
+ LOGICAL :: l
+ END SUBROUTINE h5t_logical
+END MODULE l_type_mod
+PROGRAM PROG_FC_C_BOOL_EQ_LOGICAL
+ USE ISO_C_BINDING
+ USE l_type_mod
+ LOGICAL(KIND=C_BOOL) :: lcb
+ LOGICAL :: l
+ CALL h5t(lcb)
+ CALL h5t(l)
+END PROGRAM PROG_FC_C_BOOL_EQ_LOGICAL
+!---- END ------- Check to see C_BOOL is different from LOGICAL
+
!---- START ----- Check to see C_LONG_DOUBLE is different from C_DOUBLE
MODULE type_mod
USE ISO_C_BINDING
@@ -154,7 +179,7 @@ END PROGRAM FC_AVAIL_KINDS
!---- END ----- Determine the available KINDs for REALs and INTEGERs
PROGRAM FC_MPI_CHECK
- INCLUDE 'mpif.h'
+ USE mpi
INTEGER :: comm, amode, info, fh, ierror
CHARACTER(LEN=1) :: filename
CALL MPI_File_open( comm, filename, amode, info, fh, ierror)