Skip to content

Commit bb29e46

Browse files
authored
Merge pull request #300 from NickSzapiro-NOAA/escomp_simplify_datm
Unify cfsr and gefs datm datamodes
2 parents 36635bd + 247e941 commit bb29e46

File tree

4 files changed

+4
-236
lines changed

4 files changed

+4
-236
lines changed

datm/CMakeLists.txt

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ set(SRCFILES atm_comp_nuopc.F90
55
datm_datamode_core2_mod.F90
66
datm_datamode_jra_mod.F90
77
datm_datamode_gefs_mod.F90
8-
datm_datamode_cfsr_mod.F90
98
datm_datamode_era5_mod.F90
109
datm_datamode_simple_mod.F90)
1110

datm/atm_comp_nuopc.F90

+2-16
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,6 @@ module cdeps_datm_comp
6363
use datm_datamode_gefs_mod , only : datm_datamode_gefs_init_pointers
6464
use datm_datamode_gefs_mod , only : datm_datamode_gefs_advance
6565

66-
use datm_datamode_cfsr_mod , only : datm_datamode_cfsr_advertise
67-
use datm_datamode_cfsr_mod , only : datm_datamode_cfsr_init_pointers
68-
use datm_datamode_cfsr_mod , only : datm_datamode_cfsr_advance
69-
7066
use datm_datamode_simple_mod , only : datm_datamode_simple_advertise
7167
use datm_datamode_simple_mod , only : datm_datamode_simple_init_pointers
7268
use datm_datamode_simple_mod , only : datm_datamode_simple_advance
@@ -362,7 +358,6 @@ subroutine InitializeAdvertise(gcomp, importState, exportState, clock, rc)
362358
trim(datamode) == 'CLMNCEP' .or. &
363359
trim(datamode) == 'CPLHIST' .or. &
364360
trim(datamode) == 'GEFS' .or. &
365-
trim(datamode) == 'CFSR' .or. &
366361
trim(datamode) == 'ERA5' .or. &
367362
trim(datamode) == 'SIMPLE') then
368363
else
@@ -394,9 +389,6 @@ subroutine InitializeAdvertise(gcomp, importState, exportState, clock, rc)
394389
case ('GEFS')
395390
call datm_datamode_gefs_advertise(exportState, fldsExport, flds_scalar_name, rc)
396391
if (ChkErr(rc,__LINE__,u_FILE_u)) return
397-
case ('CFSR')
398-
call datm_datamode_cfsr_advertise(exportState, fldsExport, flds_scalar_name, rc)
399-
if (ChkErr(rc,__LINE__,u_FILE_u)) return
400392
case ('SIMPLE')
401393
call datm_datamode_simple_advertise(exportState, fldsExport, flds_scalar_name, &
402394
nlfilename, my_task, vm, rc)
@@ -643,9 +635,6 @@ subroutine datm_comp_run(gcomp, importState, exportState, target_ymd, target_tod
643635
case('GEFS')
644636
call datm_datamode_gefs_init_pointers(exportState, sdat, rc)
645637
if (ChkErr(rc,__LINE__,u_FILE_u)) return
646-
case('CFSR')
647-
call datm_datamode_cfsr_init_pointers(exportState, sdat, rc)
648-
if (ChkErr(rc,__LINE__,u_FILE_u)) return
649638
case('SIMPLE')
650639
call datm_datamode_simple_init_pointers(exportState, sdat, rc)
651640
if (ChkErr(rc,__LINE__,u_FILE_u)) return
@@ -656,7 +645,7 @@ subroutine datm_comp_run(gcomp, importState, exportState, target_ymd, target_tod
656645
call shr_get_rpointer_name(gcomp, 'atm', target_ymd, target_tod, rpfile, 'read', rc)
657646
if (ChkErr(rc,__LINE__,u_FILE_u)) return
658647
select case (trim(datamode))
659-
case('CORE2_NYF','CORE2_IAF','CORE_IAF_JRA','CLMNCEP','CPLHIST','ERA5','GEFS','CFSR','SIMPLE')
648+
case('CORE2_NYF','CORE2_IAF','CORE_IAF_JRA','CLMNCEP','CPLHIST','ERA5','GEFS','SIMPLE')
660649
call dshr_restart_read(restfilm, rpfile, logunit, my_task, mpicom, sdat, rc)
661650
if (ChkErr(rc,__LINE__,u_FILE_u)) return
662651
case default
@@ -712,9 +701,6 @@ subroutine datm_comp_run(gcomp, importState, exportState, target_ymd, target_tod
712701
case('GEFS')
713702
call datm_datamode_gefs_advance(exportstate, mainproc, logunit, mpicom, target_ymd, &
714703
target_tod, sdat%model_calendar, rc)
715-
case('CFSR')
716-
call datm_datamode_cfsr_advance(exportstate, mainproc, logunit, mpicom, target_ymd, &
717-
target_tod, sdat%model_calendar, rc)
718704
if (ChkErr(rc,__LINE__,u_FILE_u)) return
719705
case('SIMPLE')
720706
call datm_datamode_simple_advance(target_ymd, target_tod, target_mon, &
@@ -727,7 +713,7 @@ subroutine datm_comp_run(gcomp, importState, exportState, target_ymd, target_tod
727713
call shr_get_rpointer_name(gcomp, 'atm', target_ymd, target_tod, rpfile, 'write', rc)
728714
if (ChkErr(rc,__LINE__,u_FILE_u)) return
729715
select case (trim(datamode))
730-
case('CORE2_NYF','CORE2_IAF','CORE_IAF_JRA','CLMNCEP','CPLHIST','ERA5','GEFS','CFSR','SIMPLE')
716+
case('CORE2_NYF','CORE2_IAF','CORE_IAF_JRA','CLMNCEP','CPLHIST','ERA5','GEFS','SIMPLE')
731717
call dshr_restart_write(rpfile, case_name, 'datm', inst_suffix, target_ymd, target_tod, logunit, &
732718
my_task, sdat, rc)
733719
if (ChkErr(rc,__LINE__,u_FILE_u)) return

datm/datm_datamode_cfsr_mod.F90

-215
This file was deleted.

doc/source/datm.rst

+2-4
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,9 @@ ERA5 (``datm_datamode_era5_mod.F90``)
6464
`$CESMDATAROOT/inputdata/atm/datm7/ERA5`
6565

6666
.. note::
67-
In addition to the exiting DATM data modes, the `CDEPS fork <https://github.com/NOAA-EMC/CDEPS>`_
67+
Using the GEFS data mode, the `CDEPS fork <https://github.com/NOAA-EMC/CDEPS>`_
6868
used by `NOAA's UFS Weather Model <https://github.com/ufs-community/ufs-weather-model>`_
69-
also includes additional data modes such as CFSR, GEFS and GFS. These data modes are not
70-
merged with the NCAR's authoritative repository yet but it is tested under UFS Weather
71-
model.
69+
supports CFSR, GEFS and GFS data inputs.
7270

7371
.. _datm-cime-vars:
7472

0 commit comments

Comments
 (0)