From 70418dfb4a99b487f794b4f6e0b68126f291c680 Mon Sep 17 00:00:00 2001 From: Matthew Thompson Date: Tue, 12 Oct 2021 11:28:12 -0400 Subject: [PATCH 1/2] Workaround debug bug with Intel and ADA --- NCEP_crtm/CMakeLists.txt | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/NCEP_crtm/CMakeLists.txt b/NCEP_crtm/CMakeLists.txt index b9864d9..48919e0 100644 --- a/NCEP_crtm/CMakeLists.txt +++ b/NCEP_crtm/CMakeLists.txt @@ -146,7 +146,18 @@ set (SRCS ) if (CMAKE_Fortran_COMPILER_ID MATCHES Intel) - set (CMAKE_Fortran_FLAGS_RELEASE "-free ${FOPT2} ${LITTLE_ENDIAN} ${BYTERECLEN}") + if (CMAKE_BUILD_TYPE MATCHES Debug) + set (CMAKE_Fortran_FLAGS_DEBUG "") + foreach (src ${SRCS}) + if (${src} MATCHES ADA_Module.f90) + set_source_files_properties (${src} PROPERTIES COMPILE_FLAGS "-free ${FOPT1} ${LITTLE_ENDIAN} ${BYTERECLEN}") + else () + set_source_files_properties (${src} PROPERTIES COMPILE_FLAGS "${GEOS_Fortran_FLAGS_DEBUG} -free ${LITTLE_ENDIAN} ${BYTERECLEN}") + endif () + endforeach () + else () + set (CMAKE_Fortran_FLAGS_RELEASE "-free ${FOPT2} ${LITTLE_ENDIAN} ${BYTERECLEN}") + endif () endif () From 23425b4c696ce86039fb3ee8a22baae8c6db3dcf Mon Sep 17 00:00:00 2001 From: Matthew Thompson Date: Tue, 19 Oct 2021 09:28:23 -0400 Subject: [PATCH 2/2] Bring fix from AeroApps --- NCEP_crtm/CMakeLists.txt | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/NCEP_crtm/CMakeLists.txt b/NCEP_crtm/CMakeLists.txt index 48919e0..db6f797 100644 --- a/NCEP_crtm/CMakeLists.txt +++ b/NCEP_crtm/CMakeLists.txt @@ -147,16 +147,8 @@ set (SRCS if (CMAKE_Fortran_COMPILER_ID MATCHES Intel) if (CMAKE_BUILD_TYPE MATCHES Debug) - set (CMAKE_Fortran_FLAGS_DEBUG "") - foreach (src ${SRCS}) - if (${src} MATCHES ADA_Module.f90) - set_source_files_properties (${src} PROPERTIES COMPILE_FLAGS "-free ${FOPT1} ${LITTLE_ENDIAN} ${BYTERECLEN}") - else () - set_source_files_properties (${src} PROPERTIES COMPILE_FLAGS "${GEOS_Fortran_FLAGS_DEBUG} -free ${LITTLE_ENDIAN} ${BYTERECLEN}") - endif () - endforeach () - else () - set (CMAKE_Fortran_FLAGS_RELEASE "-free ${FOPT2} ${LITTLE_ENDIAN} ${BYTERECLEN}") + message(WARNING "Intel Compiler and our debugging flags have issues with ADA_Module.f90. So for now we turn off checking compiling ADA_Module.f90") + set_source_files_properties(ADA_Module.f90 PROPERTIES COMPILE_OPTIONS -nocheck) endif () endif ()