Skip to content

Commit

Permalink
change warning to all caps
Browse files Browse the repository at this point in the history
  • Loading branch information
uramirez8707 committed Oct 30, 2024
1 parent 3fe9719 commit 88e0e9d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,8 @@ if(WITH_YAML)
endif()

if(USE_DEPRECATED_IO)
message( WARNING "FMS_io will be deprecated in a future release. Please update to use fms2_io and remove "
"-DUSE_DEPRECATED_IO=on from your options")
message( WARNING "fms_io WILL BE DEPRECATED IN A FUTURE RELEASE. PLEASE UPDATE TO USE FMS2_IO AND REMOVE "
"-DUSE_DEPRECATED_IO=on FROM YOUR OPTIONS")
list(APPEND fms_defs use_deprecated_io)
endif()

Expand Down
5 changes: 4 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,6 @@ if test $enable_deprecated_io = yes; then
# this macro was only removed from non-deprecated code so still needs to be set
AC_DEFINE([use_netCDF], [1], [This has been removed elsewhere but is still required to build with deprecated io])
AM_CONDITIONAL([SKIP_DEPRECATED_IO_TESTS], true)
AC_MSG_WARN(FMS_io will be deprecated in a future release. Please update to use fms2_io and remove --enable-deprecated-io from your configure options)
else
AM_CONDITIONAL([SKIP_DEPRECATED_IO_TESTS], false)
fi
Expand Down Expand Up @@ -538,3 +537,7 @@ AC_CONFIG_FILES([
])

AC_OUTPUT()

if test $enable_deprecated_io = yes; then
AC_MSG_WARN(FMS_IO WILL BE DEPRECATED IN A FUTURE RLEASE. PLEASE UPDATE TO USE FMS2_IO AND REMOVE --enable-deprecated-io FROM YOUR CONFIGURE OPTIONS)
fi
16 changes: 8 additions & 8 deletions fms/fms_io.F90
Original file line number Diff line number Diff line change
Expand Up @@ -693,10 +693,10 @@ subroutine fms_io_init()
call mpp_error(FATAL,'=>fms_io_init: Error reading input nml file')
endif

call mpp_error(NOTE, "fms_io_init: fms_io will be deprecated in a future release. "// &
"Please remove -Duse_deprecated_io from your compile flags "// &
"and move to fms2_io. Contact your model liaison if you need "// &
"assistance")
call mpp_error(NOTE, "fms_io_init: fms_io WILL BE DEPRECATED IN A FUTURE RELEASE! "//&
"PLEASE REMOVE -Duse_deprecated_io FROM YOUR COMPILE FLAGS "// &
"AND MOVE TO FMS2_IO. CONTACT YOUR MODEL LIASISON IF YOU NEED "// &
"ASSISTANCE")

! take namelist options if present
! read_data_bug is no longer supported.
Expand Down Expand Up @@ -807,10 +807,10 @@ subroutine fms_io_exit()

if( .NOT.module_is_initialized )return !make sure it's only called once per PE

call mpp_error(NOTE, "fms_io_exit: fms_io will be deprecated in a future release. "// &
"Please remove -Duse_deprecated_io from your compile flags "// &
"and move to fms2_io. Contact your model liaison if you need "// &
"assistance.")
call mpp_error(NOTE, "fms_io_exit: fms_io WILL BE DEPRECATED IN A FUTURE RELEASE! "//&
"PLEASE REMOVE -Duse_deprecated_io FROM YOUR COMPILE FLAGS "// &
"AND MOVE TO FMS2_IO. CONTACT YOUR MODEL LIASISON IF YOU NEED "// &
"ASSISTANCE")

do i=1,max_axis_size
axisdata(i) = i
Expand Down

0 comments on commit 88e0e9d

Please sign in to comment.