Skip to content

Commit

Permalink
clean-up
Browse files Browse the repository at this point in the history
  • Loading branch information
brtnfld committed Mar 26, 2024
1 parent c03e8da commit c82b8ff
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions config/cmake/HDF5UseFortran.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,6 @@ if (${HAVE_ISO_FORTRAN_ENV})
set (PAC_FC_ALL_LOGICAL_KINDS "\{${pac_validLogicalKinds}\}")
message (STATUS "....LOGICAL KINDS FOUND ${PAC_FC_ALL_LOGICAL_KINDS}")


# ********************
# LOGICAL KIND FOR MPI
# ********************
Expand All @@ -247,7 +246,7 @@ if (${HAVE_ISO_FORTRAN_ENV})
)
check_fortran_source_compiles (${PROG_SRC} MPI_LOGICAL_KIND SRC_EXT f90)

if (${MPI_LOGICAL_KIND} MATCHES "1")
if (MPI_LOGICAL_KIND)
set (${HDF_PREFIX}_MPI_LOGICAL_KIND ${KIND})
message (STATUS "....FORTRAN LOGICAL KIND for MPI is ${KIND}")
endif ()
Expand Down Expand Up @@ -407,7 +406,6 @@ if (NOT PAC_FORTRAN_NATIVE_DOUBLE_KIND)
message (FATAL_ERROR "Failed to find KIND of NATIVE DOUBLE for Fortran")
endif ()


set (${HDF_PREFIX}_FORTRAN_SIZEOF_LONG_DOUBLE ${${HDF_PREFIX}_SIZEOF_LONG_DOUBLE})

# remove the invalid kind from the list
Expand Down

0 comments on commit c82b8ff

Please sign in to comment.