Skip to content

Commit 64d120a

Browse files
authored
Merge branch 'NOAA-GFDL:main' into cmake-updates
2 parents 436d708 + 44f182d commit 64d120a

63 files changed

Lines changed: 160 additions & 26493 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/github_autotools_intel.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ concurrency:
88
jobs:
99
intel-autotools:
1010
runs-on: ubuntu-latest
11-
strategy:
12-
matrix:
13-
io-flag: ["--disable-deprecated-io", "--enable-deprecated-io"]
1411
container:
1512
image: intel/oneapi-hpckit:2023.1.0-devel-ubuntu20.04
1613
env:
@@ -58,7 +55,7 @@ jobs:
5855
run: |
5956
autoreconf -if ./configure.ac
6057
export LD_LIBRARY_PATH="/libs/lib:$LD_LIBRARY_PATH"
61-
./configure --with-yaml ${{ matrix.io-flag }}
58+
./configure --with-yaml
6259
- name: Compile
6360
run: make -j || make
6461
- name: Run test suite

.github/workflows/github_cmake_gnu.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,11 @@ jobs:
1414
matrix:
1515
omp-flags: [ -DOPENMP=on, -DOPENMP=off ]
1616
libyaml-flag: [ "", -DWITH_YAML=on ]
17-
io-flag: [ "", -DUSE_DEPRECATED_IO=on ]
1817
build-type: [ "-DCMAKE_BUILD_TYPE=Release", "-DCMAKE_BUILD_TYPE=Debug" ]
1918
container:
2019
image: ghcr.io/noaa-gfdl/fms/fms-ci-rocky-gnu:13.2.0
2120
env:
22-
CMAKE_FLAGS: "${{ matrix.build-type }} ${{ matrix.omp-flags }} ${{ matrix.io-flag }} ${{ matrix.libyaml-flag }} -D64BIT=on"
21+
CMAKE_FLAGS: "${{ matrix.build-type }} ${{ matrix.omp-flags }} ${{ matrix.libyaml-flag }} -D64BIT=on"
2322
steps:
2423
- name: Checkout code
2524
uses: actions/checkout@v4.2.2

CMakeLists.txt

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ 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 "Enable compiler definition -Duse_deprecated_io (compile with fms_io/mpp_io)" OFF)
68+
option(USE_DEPRECATED_IO "THIS OPTION HAS NO EFFECT AND WILL BE REMOVED IN A FUTURE RELEASE" OFF)
6969

7070
if(32BIT)
7171
list(APPEND kinds "r4")
@@ -103,7 +103,6 @@ list(APPEND fms_fortran_src_files
103103
affinity/fms_affinity.F90
104104
amip_interp/amip_interp.F90
105105
astronomy/astronomy.F90
106-
axis_utils/axis_utils.F90
107106
axis_utils/axis_utils2.F90
108107
block_control/block_control.F90
109108
column_diagnostics/column_diagnostics.F90
@@ -151,7 +150,6 @@ list(APPEND fms_fortran_src_files
151150
field_manager/field_manager.F90
152151
field_manager/fm_util.F90
153152
field_manager/fm_yaml.F90
154-
fms/fms_io.F90
155153
fms/fms.F90
156154
fms2_io/blackboxio.F90
157155
fms2_io/fms_io_utils.F90
@@ -176,7 +174,6 @@ list(APPEND fms_fortran_src_files
176174
mpp/mpp_data.F90
177175
mpp/mpp_domains.F90
178176
mpp/mpp_efp.F90
179-
mpp/mpp_io.F90
180177
mpp/mpp_memutils.F90
181178
mpp/mpp_parameter.F90
182179
mpp/mpp_utilities.F90
@@ -188,7 +185,6 @@ list(APPEND fms_fortran_src_files
188185
sat_vapor_pres/sat_vapor_pres_k.F90
189186
sat_vapor_pres/sat_vapor_pres.F90
190187
string_utils/fms_string_utils.F90
191-
time_interp/time_interp_external.F90
192188
time_interp/time_interp_external2.F90
193189
time_interp/time_interp.F90
194190
time_manager/get_cal_time.F90
@@ -256,9 +252,8 @@ if(WITH_YAML)
256252
endif()
257253

258254
if(USE_DEPRECATED_IO)
259-
message( WARNING "fms_io WILL BE DEPRECATED IN A FUTURE RELEASE. PLEASE UPDATE TO USE FMS2_IO AND REMOVE "
260-
"-DUSE_DEPRECATED_IO=on FROM YOUR OPTIONS")
261-
list(APPEND fms_defs use_deprecated_io)
255+
message( FATAL_ERROR "FMS_IO HAS BEEN REMOVED! PLEASE UPDATE TO USE FMS2_IO AND REMOVE "
256+
"-DUSE_DEPRECATED_IO=on FROM YOUR OPTIONS OR REVERT TO VERSION 2025.02")
262257
endif()
263258

264259
if(INTERNAL_FILE_NML)

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
\page rm General Project Information
1+
# License Announcement
2+
3+
FMS will switch to the
4+
[Apache License, Version 2.0](https://www.apache.org/licenses/LICENSE-2.0.txt)
5+
with the 2025.04 or 2026.01 release. Please refer to
6+
[issue 1683 on changing the license](https://github.com/NOAA-GFDL/FMS/issues/1683)
7+
to participate in or follow any dicussion on the topic.
8+
29
# Modeling Framework: Flexible Modeling System (FMS)
310

411
Today’s climate models simulate highly complex systems. In response to

amip_interp/amip_interp.F90

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,8 @@ module amip_interp_mod
156156
integer :: j_sst = 600
157157
real(r8_kind), parameter:: big_number = 1.E30_r8_kind
158158
logical :: forecast_mode = .false.
159-
real(r8_kind), allocatable, dimension(:,:) :: sst_ncep, sst_anom
160159

161-
public i_sst, j_sst, sst_ncep, sst_anom, forecast_mode, use_ncep_sst
160+
public i_sst, j_sst, forecast_mode, use_ncep_sst
162161

163162
!-----------------------------------------------------------------------
164163
!--------------------- private below here ------------------------------
@@ -460,14 +459,6 @@ subroutine amip_interp_init
460459
!--- Added by SJL ----------------------------------------------
461460
if ( use_ncep_sst ) then
462461
mobs = i_sst; nobs = j_sst
463-
if (.not. allocated (sst_ncep)) then
464-
allocate (sst_ncep(i_sst,j_sst))
465-
sst_ncep(:,:) = big_number
466-
endif
467-
if (.not. allocated (sst_anom)) then
468-
allocate (sst_anom(i_sst,j_sst))
469-
sst_anom(:,:) = big_number
470-
endif
471462
else
472463
mobs = 360; nobs = 180
473464
endif

amip_interp/include/amip_interp.inc

Lines changed: 2 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,6 @@ if ( .not.use_daily ) then
114114
temp1(:,:) = temp2(:,:) ! SJL BUG fix: June 24, 2011
115115
else
116116
call READ_RECORD_ ('sst', Date1, Udate1, temp1)
117-
if ( use_ncep_sst .and. (.not. no_anom_sst) ) then
118-
temp1 = temp1 + SST_ANOM_
119-
endif
120117
call horiz_interp ( Interp%Hintrp, temp1, Interp%DATA1_)
121118
call CLIP_DATA_ ('sst', Interp%DATA1_)
122119
Interp%Date1 = Date1
@@ -127,9 +124,6 @@ if ( .not.use_daily ) then
127124

128125
if (Date2 /= Interp%Date2) then
129126
call READ_RECORD_ ('sst', Date2, Udate2, temp2)
130-
if ( use_ncep_sst .and. (.not. no_anom_sst) ) then
131-
temp2 = temp2 + SST_ANOM_
132-
endif
133127
call horiz_interp ( Interp%Hintrp, temp2, Interp%DATA2_)
134128
call CLIP_DATA_ ('sst', Interp%DATA2_)
135129
Interp%Date2 = Date2
@@ -145,11 +139,6 @@ if ( .not.use_daily ) then
145139
! Nudging runs: (Note: NCEP SST updated only every 6-hr)
146140
! Compute SST anomaly from global SST datasets for subsequent forecast runs
147141
!-------------------------------------------------------------------------------
148-
if ( use_ncep_sst .and. no_anom_sst ) then
149-
sst_anom = SST_NCEP_ - (temp1 + fmonth*(temp2 - temp1))
150-
call horiz_interp (Interp%Hintrp, SST_NCEP_, sst)
151-
call CLIP_DATA_ ('sst', sst)
152-
endif
153142

154143
!! DEBUG CODE
155144
if (DEBUG) then
@@ -380,15 +369,7 @@ else
380369
!-- SJL -------------------------------------------------------------
381370
! Can NOT use ncep_sst to determine sea_ice For seasonal forecast
382371
! Use climo sea ice for seasonal runs
383-
if ( use_ncep_sst .and. use_ncep_ice ) then
384-
where ( SST_NCEP_ <= (real(TFREEZE, FMS_AMIP_INTERP_KIND_)+real(tice_crit, FMS_AMIP_INTERP_KIND_)) )
385-
sice = 1._lkind
386-
elsewhere
387-
sice = 0._lkind
388-
endwhere
389-
else
390-
call READ_RECORD_ ('ice', Date1, Udate1, sice)
391-
endif
372+
call READ_RECORD_ ('ice', Date1, Udate1, sice)
392373
!--------------------------------------------------------------------
393374
call horiz_interp ( Interp%Hintrp, sice, Interp%DATA1_)
394375
call CLIP_DATA_ ('ice', Interp%DATA1_)
@@ -401,15 +382,7 @@ else
401382
if (Date2 /= Interp%Date2) then
402383

403384
!-- SJL -------------------------------------------------------------
404-
if ( use_ncep_sst .and. use_ncep_ice ) then
405-
where ( SST_NCEP_ <= (real(TFREEZE, FMS_AMIP_INTERP_KIND_)+real(tice_crit, FMS_AMIP_INTERP_KIND_)) )
406-
sice = 1._lkind
407-
elsewhere
408-
sice = 0._lkind
409-
endwhere
410-
else
411-
call READ_RECORD_ ('ice', Date2, Udate2, sice)
412-
endif
385+
call READ_RECORD_ ('ice', Date2, Udate2, sice)
413386
!--------------------------------------------------------------------
414387
call horiz_interp ( Interp%Hintrp, sice, Interp%DATA2_)
415388
call CLIP_DATA_ ('ice', Interp%DATA2_)

amip_interp/include/amip_interp_r4.fh

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
#undef FMS_AMIP_INTERP_KIND_
2-
#undef SST_NCEP_
3-
#undef SST_ANOM_
42
#undef LON_BND_
53
#undef LAT_BND_
64
#undef TEMPAMIP_
@@ -18,8 +16,6 @@
1816
#undef ZONAL_SST_
1917

2018
#define FMS_AMIP_INTERP_KIND_ r4_kind
21-
#define SST_NCEP_ real(sst_ncep, r4_kind)
22-
#define SST_ANOM_ real(sst_anom, r4_kind)
2319
#define LON_BND_ real(lon_bnd, r4_kind)
2420
#define LAT_BND_ real(lat_bnd, r4_kind)
2521
#define TEMPAMIP_ real(tempamip, r4_kind)
@@ -39,8 +35,6 @@
3935
#include "amip_interp.inc"
4036

4137
#undef FMS_AMIP_INTERP_KIND_
42-
#undef SST_NCEP_
43-
#undef SST_ANOM_
4438
#undef LON_BND_
4539
#undef LAT_BND_
4640
#undef TEMPAMIP_

amip_interp/include/amip_interp_r8.fh

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
#undef FMS_AMIP_INTERP_KIND_
2-
#undef SST_NCEP_
3-
#undef SST_ANOM_
42
#undef LON_BND_
53
#undef LAT_BND_
64
#undef TEMPAMIP_
@@ -18,8 +16,6 @@
1816
#undef ZONAL_SST_
1917

2018
#define FMS_AMIP_INTERP_KIND_ r8_kind
21-
#define SST_NCEP_ sst_ncep
22-
#define SST_ANOM_ sst_anom
2319
#define LON_BND_ lon_bnd
2420
#define LAT_BND_ lat_bnd
2521
#define TEMPAMIP_ tempamip
@@ -39,8 +35,6 @@
3935
#include "amip_interp.inc"
4036

4137
#undef FMS_AMIP_INTERP_KIND_
42-
#undef SST_NCEP_
43-
#undef SST_ANOM_
4438
#undef LON_BND_
4539
#undef LAT_BND_
4640
#undef TEMPAMIP_

axis_utils/Makefile.am

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ AM_FCFLAGS = $(FC_MODINC). $(FC_MODOUT)$(MODDIR)
3030
noinst_LTLIBRARIES = libaxis_utils.la
3131

3232
libaxis_utils_la_SOURCES = \
33-
axis_utils.F90 \
3433
axis_utils2.F90 \
3534
include/axis_utils2_r4.fh \
3635
include/axis_utils2_r8.fh \
@@ -42,7 +41,7 @@ include/axis_utils2_r8.fh \
4241
include/axis_utils2.inc
4342

4443
# Mod file depends on its o file, is built and then installed.
45-
nodist_include_HEADERS = axis_utils_mod.$(FC_MODEXT) axis_utils2_mod.$(FC_MODEXT)
46-
BUILT_SOURCES = axis_utils_mod.$(FC_MODEXT) axis_utils2_mod.$(FC_MODEXT)
44+
nodist_include_HEADERS = axis_utils2_mod.$(FC_MODEXT)
45+
BUILT_SOURCES = axis_utils2_mod.$(FC_MODEXT)
4746

4847
include $(top_srcdir)/mkmods.mk

0 commit comments

Comments
 (0)