Skip to content

Commit ec98d1c

Browse files
authored
Merge pull request #1136 from GEOS-ESM/feature/zhaobin74/improve-runoff-distribution
improve runoff distribution
2 parents 982e04d + f072071 commit ec98d1c

File tree

3 files changed

+35
-13
lines changed

3 files changed

+35
-13
lines changed

GEOSdataatm_GridComp/GEOS_DataAtmGridComp.F90

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -154,13 +154,6 @@ subroutine SetServices ( GC, RC )
154154
DIMS = MAPL_DimsHorzOnly, &
155155
VLOCATION = MAPL_VLocationNone, __RC__)
156156

157-
call MAPL_AddImportSpec(GC, &
158-
SHORT_NAME = 'RUNOFF', &
159-
LONG_NAME = 'overland_runoff_including_throughflow', &
160-
UNITS = 'kg m-2 s-1', &
161-
DIMS = MAPL_DimsHorzOnly, &
162-
VLOCATION = MAPL_VLocationNone, __RC__)
163-
164157
call MAPL_AddImportSpec(GC, &
165158
SHORT_NAME = 'PCU', &
166159
LONG_NAME = 'convective_rainfall', &
@@ -462,7 +455,6 @@ subroutine RUN ( GC, IMPORT, EXPORT, CLOCK, RC )
462455
real, pointer, dimension(:,:) :: QA ! => null()
463456
real, pointer, dimension(:,:) :: UA ! => null()
464457
real, pointer, dimension(:,:) :: VA ! => null()
465-
real, pointer, dimension(:,:) :: RUNOFF ! => null()
466458
real, pointer, dimension(:,:) :: PCU ! => null()
467459
real, pointer, dimension(:,:) :: PLS ! => null()
468460
real, pointer, dimension(:,:) :: SNO ! => null()
@@ -606,8 +598,8 @@ subroutine RUN ( GC, IMPORT, EXPORT, CLOCK, RC )
606598
! River runoff
607599
! call ReadForcingData(impName='DISCHARGE', frcName='RR', default=0., __RC__)
608600
call MAPL_GetPointer(SurfImport, DISCHARGE, 'DISCHARGE', __RC__)
609-
call MAPL_GetPointer(import, RUNOFF, 'RUNOFF', __RC__)
610-
DISCHARGE=RUNOFF
601+
! runoff is provided directly by Ocean Gc on the tripolar grid
602+
DISCHARGE=0.0
611603

612604
!ALT: we should read topo, but for now over ocean this is fine
613605
call SetVarToZero('PHIS', __RC__)

GEOSdataatm_GridComp/JRA55-DO_DataAtm_Forcings_ExtData.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,24 @@ Collections:
4141
friver_1_5_0_1:
4242
template: ExtData/JRA55-DO/v1-5-0-1/friver/friver_input4MIPs_atmosphericState_OMIP_MRI-JRA55-do-1-5-0-1_gr_%y40101-%y41231.nc
4343
valid_range: "2020-01-01T00:00:00/2024-02-02T00:00:00"
44+
friver_remap_1_5_0:
45+
template: ExtData/JRA55-DO/v1-5-0/friver_remap/%OCN_RES%/friver_input4MIPs_atmosphericState_OMIP_MRI-JRA55-do-1-5-0_gr_%y40101-%y41231.nc
46+
valid_range: "1958-01-01T00:00:00/2020-01-01T00:00:00"
47+
friver_remap_1_5_0_1:
48+
template: ExtData/JRA55-DO/v1-5-0-1/friver_remap/%OCN_RES%/friver_input4MIPs_atmosphericState_OMIP_MRI-JRA55-do-1-5-0-1_gr_%y40101-%y41231.nc
49+
valid_range: "2020-01-01T00:00:00/2024-02-02T00:00:00"
50+
licalvf_1_5_0:
51+
template: ExtData/JRA55-DO/v1-5-0/licalvf/licalvf_input4MIPs_atmosphericState_OMIP_MRI-JRA55-do-1-5-0_gr_%y40101-%y41231.nc
52+
valid_range: "1958-01-01T00:00:00/2020-01-01T00:00:00"
53+
licalvf_1_5_0_1:
54+
template: ExtData/JRA55-DO/v1-5-0-1/licalvf/licalvf_input4MIPs_atmosphericState_OMIP_MRI-JRA55-do-1-5-0-1_gr_%y40101-%y41231.nc
55+
valid_range: "2020-01-01T00:00:00/2024-02-02T00:00:00"
56+
licalvf_remap_1_5_0:
57+
template: ExtData/JRA55-DO/v1-5-0/licalvf_remap/%OCN_RES%/licalvf_input4MIPs_atmosphericState_OMIP_MRI-JRA55-do-1-5-0_gr_%y40101-%y41231.nc
58+
valid_range: "1958-01-01T00:00:00/2020-01-01T00:00:00"
59+
licalvf_remap_1_5_0_1:
60+
template: ExtData/JRA55-DO/v1-5-0-1/licalvf_remap/%OCN_RES%/licalvf_input4MIPs_atmosphericState_OMIP_MRI-JRA55-do-1-5-0-1_gr_%y40101-%y41231.nc
61+
valid_range: "2020-01-01T00:00:00/2024-02-02T00:00:00"
4462
prra_1_5_0:
4563
template: ExtData/JRA55-DO/v1-5-0/prra/prra_input4MIPs_atmosphericState_OMIP_MRI-JRA55-do-1-5-0_gr_%y401010130-%y412312230.nc
4664
valid_range: "1958-01-01T00:00:00/2020-01-01T00:00:00"
@@ -91,6 +109,12 @@ Exports:
91109
RUNOFF:
92110
- {starting: "1958-01-01T00:00:00", collection: friver_1_5_0, regrid: CONSERVE, sample: river_conserve_sample, variable: friver}
93111
- {starting: "2020-01-01T00:00:00", collection: friver_1_5_0_1, regrid: CONSERVE, sample: river_conserve_sample, variable: friver}
112+
DISCHARGE:
113+
- {starting: "1958-01-01T00:00:00", collection: friver_remap_1_5_0, regrid: NEAREST_STOD, sample: river_conserve_sample, variable: friver}
114+
- {starting: "2020-01-01T00:00:00", collection: friver_remap_1_5_0_1, regrid: NEAREST_STOD, sample: river_conserve_sample, variable: friver}
115+
CALVING: {collection: /dev/null}
116+
# - {starting: "1958-01-01T00:00:00", collection: licalvf_remap_1_5_0, regrid: NEAREST_STOD, sample: river_conserve_sample, variable: licalvf}
117+
# - {starting: "2020-01-01T00:00:00", collection: licalvf_remap_1_5_0_1, regrid: NEAREST_STOD, sample: river_conserve_sample, variable: licalvf}
94118
PCU:
95119
- {starting: "1958-01-01T00:00:00", collection: prra_1_5_0, regrid: CONSERVE, sample: flux_conserve_sample, variable: prra}
96120
- {starting: "2020-01-01T00:00:00", collection: prra_1_5_0_1, regrid: CONSERVE, sample: flux_conserve_sample, variable: prra}

GEOSogcm_GridComp/GEOS_OgcmGridComp.F90

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -848,7 +848,11 @@ subroutine SetServices ( GC, RC )
848848
call MAPL_TerminateImport ( GC, ["DATA_KPAR "], [orad], RC=STATUS ) ! need to terminate others as well: cosz, discharge, frocean, pice, taux, tauy
849849
endif
850850
else
851-
call MAPL_TerminateImport(GC, ['DATA_UW', 'DATA_VW'], [OCEAN, OCEAN], _RC)
851+
if(DO_DATA_ATM4OCN) then
852+
call MAPL_TerminateImport(GC, ['DATA_UW ', 'DATA_VW ', 'DISCHARGE', 'CALVING '], [OCEAN, OCEAN, OCEAN, OCEAN], _RC)
853+
else
854+
call MAPL_TerminateImport(GC, ['DATA_UW', 'DATA_VW'], [OCEAN, OCEAN], _RC)
855+
endif
852856
endif
853857

854858
! Set the Profiling timers
@@ -1824,8 +1828,10 @@ subroutine RUN ( GC, IMPORT, EXPORT, CLOCK, RC )
18241828
VERIFY_(STATUS)
18251829

18261830
if(DO_DATASEAONLY==0) then
1827-
call MAPL_LocStreamTransform( ExchGrid, DISCHARGEO, DISCHARGE, RC=STATUS)
1828-
VERIFY_(STATUS)
1831+
if(.not. DO_DATA_ATM4OCN) then
1832+
call MAPL_LocStreamTransform( ExchGrid, DISCHARGEO, DISCHARGE, RC=STATUS)
1833+
VERIFY_(STATUS)
1834+
endif
18291835

18301836
PENUVRM= PENUVRO
18311837
PENUVFM= PENUVFO

0 commit comments

Comments
 (0)