Skip to content

Commit 46678d5

Browse files
rem1776rem1776
authored andcommitted
remove deprecated io build options and error out if used
1 parent c5b2fbd commit 46678d5

File tree

3 files changed

+2
-14
lines changed

3 files changed

+2
-14
lines changed

CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ option(PORTABLE_KINDS "Enable compiler definition -DPORTABLE_KINDS"
6565
option(GFS_PHYS "Enable compiler definition -DGFS_PHYS" OFF)
6666
option(LARGEFILE "Enable compiler definition -Duse_LARGEFILE" OFF)
6767
option(WITH_YAML "Enable compiler definition -Duse_yaml" OFF)
68-
option(USE_DEPRECATED_IO "THIS OPTION HAS NO EFFECT AND WILL BE REMOVED IN A FUTURE RELEASE" OFF)
6968

7069
if(32BIT)
7170
list(APPEND kinds "r4")

configure.ac

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -98,17 +98,6 @@ AS_IF([test ${enable_8byte_int:-no} = yes],
9898
[enable_8byte_int=yes],
9999
[enable_8byte_int=no])
100100

101-
AC_ARG_ENABLE([deprecated-io],
102-
[AS_HELP_STRING([--enable-deprecated-io],
103-
[THIS OPTION HAS BEEN DEPRECATED!!!])])
104-
AS_IF([test ${enable_deprecated_io:-no} = yes],
105-
[enable_deprecated_io=yes],
106-
[enable_deprecated_io=no])
107-
108-
if test $enable_deprecated_io = yes; then
109-
AC_MSG_ERROR(FMS_IO HAS BEEN REMOVED! PLEASE UPDATE TO USE FMS2_IO AND REMOVE --enable-deprecated-io FROM YOUR CONFIGURE OPTIONS OR REVERT TO VERSION 2025.02)
110-
fi
111-
112101
AC_ARG_ENABLE([r8-default],
113102
[AS_HELP_STRING([--disable-r8-default],
114103
[Disables the build from adding the 8 byte default real kind flag during compilation (default no)])])

fms/fms.F90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,9 +320,9 @@ subroutine maximize_system_stacksize_limit() bind(C)
320320
call mpp_domains_init()
321321
call fms2_io_init()
322322
#ifdef use_deprecated_io
323-
call mpp_error(NOTE, "fms_io_init: fms_io HAS BEEN DEPRECATED! "//&
323+
call mpp_error(ERROR, "fms_io_init: fms_io/mpp_io was removed in the 2025.03 release of FMS! "//&
324324
"PLEASE REMOVE -Duse_deprecated_io FROM YOUR COMPILE FLAGS "// &
325-
"AND MOVE TO FMS2_IO. CONTACT YOUR MODEL LIASISON IF YOU NEED "// &
325+
"AND MOVE TO FMS2_IO. CONTACT YOUR GFDL MODEL LIAISON IF YOU NEED "// &
326326
"ASSISTANCE")
327327
#endif
328328
logunitnum = stdlog()

0 commit comments

Comments
 (0)