Skip to content
Draft
Show file tree
Hide file tree
Changes from 99 commits
Commits
Show all changes
114 commits
Select commit Hold shift + click to select a range
7faae9f
branch feature/yujinz/Routing_GEOSroute started, offline model was pu…
Oct 24, 2024
54950b8
change some paths for Discover
Oct 28, 2024
982bdd9
script build is replaced by run
Oct 29, 2024
f2a19da
readme.txt added
Oct 29, 2024
bf8b9a8
update K_str
Oct 31, 2024
71e44c5
Merge remote-tracking branch 'origin/develop' into feature/yujinz/Rou…
Oct 31, 2024
c6e341b
removing some Chinese characters in the comments
Oct 31, 2024
d2a0c95
more cleaning up
Nov 5, 2024
0d8ebcb
Merge remote-tracking branch 'origin/develop' into feature/yujinz/Rou…
Dec 2, 2024
5e9377a
move offline model to dir offline
Dec 2, 2024
7ceed5a
routing model was implemented to GEOSldas
Dec 2, 2024
17b7d4b
back to TAKI
Dec 6, 2024
431674c
back to Discover
Dec 6, 2024
5d98b30
a small bug fix for the offline model
Dec 18, 2024
abcf705
update the offline model to the coupled model
Jan 8, 2025
416a94f
Merge branch 'develop' into feature/yujinz/Routing_GEOSroute
gmao-rreichle Feb 26, 2025
96cbcd6
reservoir module added
Mar 10, 2025
ebe5287
temporarily disable flood control for dams
Mar 19, 2025
a81bcea
preprocessing for routing model added
Mar 20, 2025
0c5d779
code clean up, and comment&documents added
May 8, 2025
af2ec8b
Merge remote-tracking branch 'origin/develop' into feature/yujinz/Rou…
May 8, 2025
9a08d7b
'==' changed to '.eqv.'
May 8, 2025
32fe955
'.eqv.' replaces '=='
May 9, 2025
1fb57bb
Merge branch 'develop' into feature/yujinz/Routing_GEOSroute
gmao-rreichle May 21, 2025
ef58210
changed variable name NUM_CATCH -> NUM_CATCH_ENS for clarity (GEOS_La…
gmao-rreichle May 21, 2025
85af5a7
avoid duplicate hard-coding of #Pfaf catchments; fixed indent, alignm…
gmao-rreichle May 21, 2025
4e3cfec
added comments to clarify connected "RUNOFF" variable (GEOS_LandGridC…
gmao-rreichle May 21, 2025
e367061
Update CMakeLists.txt
weiyuan-jiang May 23, 2025
f1c450d
copying river_input through make_bcs
Jun 18, 2025
c60c59b
river routing input data pointing to bcs
Jun 19, 2025
636cbf1
-diag-disable=10448 added in the building of routing_model preproc
Jun 19, 2025
7305bb9
some modifications to address the comments from Weiyuan, yet to be te…
Aug 10, 2025
ff16f13
change name ntiles
weiyuan-jiang Aug 14, 2025
e2b66c6
add internal, export and catchment grid support
weiyuan-jiang Aug 25, 2025
dca6882
redistrubuted runnoff and collect qout
weiyuan-jiang Sep 5, 2025
3bf435f
more changes
weiyuan-jiang Sep 9, 2025
7f739aa
refactoring...
weiyuan-jiang Sep 10, 2025
58a7406
cleanup RUN1
weiyuan-jiang Sep 12, 2025
5fedcb5
create tile_pfaf file
Sep 17, 2025
0b7326a
rename and move get_pfaf_frac to mkEASETilesParam
weiyuan-jiang Sep 18, 2025
ab9ceaf
Merge branch 'develop' into feature/yujinz/Routing_GEOSroute
weiyuan-jiang Sep 18, 2025
1840281
Merge branch 'feature/yujinz/Routing_GEOSroute' into feature/wjiang/R…
weiyuan-jiang Sep 18, 2025
54008e6
Merge branch 'feature/wjiang/Routing_GEOSroute_on_yujin' into feature…
weiyuan-jiang Sep 19, 2025
06bfaf0
Merge pull request #1158 from GEOS-ESM/feature/wjiang/river_bcs
weiyuan-jiang Sep 19, 2025
1b2b95f
Merge branch 'feature/wjiang/Routing_GEOSroute_on_yujin' of github.co…
weiyuan-jiang Sep 19, 2025
ee0c6aa
reading restart from internal rst file
weiyuan-jiang Sep 22, 2025
6ca800d
read from tile_pfaf file
weiyuan-jiang Sep 22, 2025
ed2dc1b
reading areacat
weiyuan-jiang Sep 22, 2025
38a5c54
read more from river_input. remove internal mpi
weiyuan-jiang Sep 22, 2025
b026421
correct acc and change pointer to allocatable
weiyuan-jiang Sep 22, 2025
aab5b97
refactoring reservoir...
weiyuan-jiang Sep 23, 2025
d90f0cc
more clean up
weiyuan-jiang Sep 23, 2025
13578c8
cleanup fieldcreate
weiyuan-jiang Sep 24, 2025
e3396d4
Merge branch 'develop' into feature/yujinz/Routing_GEOSroute
gmao-rreichle Sep 24, 2025
d0bf2be
Merge branch 'feature/yujinz/Routing_GEOSroute' into feature/wjiang/R…
gmao-rreichle Sep 24, 2025
aae0ac1
fixed some issues
Nov 5, 2025
4fd39bf
pre-processing of routing model added
Nov 10, 2025
fd495b3
Merge branch 'develop' into feature/wjiang/Routing_GEOSroute_on_yujin
weiyuan-jiang Dec 1, 2025
039a536
offline routing code removed
Dec 4, 2025
dd2f4e2
move Route gridComp one level up
weiyuan-jiang Dec 4, 2025
d3eec53
Merge branch 'feature/wjiang/Routing_GEOSroute_on_yujin' of github.co…
weiyuan-jiang Dec 4, 2025
855e542
minor fixes, mostly white-space changes (documentation, typos, indent…
gmao-rreichle Dec 8, 2025
1fd3582
Clean up files in Utils/Raster/preproc/routing_model/
Dec 8, 2025
4cfab92
removed unused files under Utils/Raster/preproc/routing_model/
Dec 8, 2025
a37b5ab
Add routing_model in Utils/Raster/preproc/CMakeLists.txt
Dec 8, 2025
fb7e50a
updated input path for the Utils/Raster/preproc/routing_model
Dec 8, 2025
dc267f1
removing unused var in k_module_cali.f90
Dec 9, 2025
9c1e988
addressed some Rolf's comments
Dec 9, 2025
5176805
preproc reading M and m from routing_model.f90
Dec 10, 2025
50a9eed
fixed a bug
Dec 10, 2025
c9148e3
refactoring...
weiyuan-jiang Dec 10, 2025
43110cc
addressed comments from Rolf
Dec 10, 2025
dfb8528
Merge branch 'feature/wjiang/Routing_GEOSroute_on_yujin' of github.co…
weiyuan-jiang Dec 11, 2025
24ee069
support cubed-sphere grid
weiyuan-jiang Dec 11, 2025
7545ae4
fixed a bug
Dec 14, 2025
2c42079
fixed catchment area unit bug
Dec 14, 2025
141d906
made the sum of global_frac within each catchment to 1 for CubeShpere…
Dec 15, 2025
203ee0e
route model reads parameters from restart file instead of river_input.nc
Dec 17, 2025
f951c93
fixed a bug in runoff remapping
Dec 24, 2025
973e59c
using the sum of tile area to represent catchment area for cube-shper…
Dec 24, 2025
b8275cb
location of tile_pfaf_file changed
Dec 24, 2025
61a4313
Merge branch 'develop' into feature/wjiang/Routing_GEOSroute_on_yujin
gmao-rreichle Jan 7, 2026
3eb66a4
change preproc to produce river_input.nc exactly used in the restarts
Jan 19, 2026
0cacee3
change paths in the scripts to the updated locations for preproc input
Jan 23, 2026
dcdb790
change path in mk_runofftbl.F90 to the new location of outlets mk_bcs…
Jan 23, 2026
afbcbca
change path to new make_bcs input for make_bcs_shared.py and pfaf_fra…
Jan 25, 2026
1d04d8e
rename TILE2PFAF_FILE
weiyuan-jiang Jan 26, 2026
49790fa
rename TILE2PFAF_FILE in mkEASETilesParam.F90
Jan 26, 2026
11fd3b3
cleanup: edited comments and improved readability (GEOS_LandGridComp.…
gmao-rreichle Jan 28, 2026
ade2ee2
cleanup: removed obsolete code; improved documentation; white-space c…
gmao-rreichle Jan 29, 2026
2dd1086
changed RUNOFF_IN local variable name to clarify m3/s units (GEOS_Rou…
gmao-rreichle Jan 29, 2026
9fd47bc
additional edits to comments; moved allocate statement into group of …
gmao-rreichle Jan 30, 2026
fedcc24
edited comments; clarified units; renamed variable for clarity (Qout …
gmao-rreichle Jan 30, 2026
ef8ead6
edited comments; improved vertical alignment for readability; restric…
gmao-rreichle Jan 30, 2026
864bfba
further changes as in previous commit (routing_model.F90)
gmao-rreichle Jan 30, 2026
f452878
fixed comments; improved vertical alignment for readability (pfaf_fra…
gmao-rreichle Jan 30, 2026
fea63ad
address Rolf's comments except pars movements to preproc and pfaf_fra…
Feb 3, 2026
a366332
area_global_rectilinear_grid(lat, lon, rearth=6371.22) to area_global…
Feb 3, 2026
64775ef
additional cleanup of routing model code:
gmao-rreichle Feb 3, 2026
02923e2
change EASE_pfaf_frac.F90 to read til file and MAPL_radius used in ge…
Feb 5, 2026
e4d868f
added comments; changed variable name for accuracy (tid -> pfaf_ind) …
gmao-rreichle Feb 5, 2026
5a096c5
cleanup CMakeLists.txt
weiyuan-jiang Feb 8, 2026
c0808d9
cleanup. added EASE_find_subs subroutine
weiyuan-jiang Feb 8, 2026
0b126ca
routing and reservoir alpha goes to preprocessing
Feb 8, 2026
6fcdb5e
remove read write tilenc4 subroutines which have been moved to MAPL
weiyuan-jiang Feb 9, 2026
204e48b
add latlon gridcell area calculation
weiyuan-jiang Feb 9, 2026
18a836b
calculate area on the fly
weiyuan-jiang Feb 10, 2026
6efc70f
added comment re. hard-coded values of PI and Earth radius (generate_…
gmao-rreichle Feb 10, 2026
41f166e
fixing syntax error in previous commit (generate_scrip_cube.F90)
gmao-rreichle Feb 10, 2026
3dbe253
change formula to calculate lat-lon cell
weiyuan-jiang Feb 11, 2026
cb482c1
further cleanup cellarea
weiyuan-jiang Feb 11, 2026
624bcec
read lati_tile loni_tile from til file in EASE_pfaf_frac.F90 and some…
Feb 11, 2026
995bcad
merge origin/feature/wjiang/Routing_GEOSroute_on_yujin at cb482c1cf
Feb 11, 2026
6034e49
clean up in routing_model preproc
Feb 13, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ set (alldirs
GEOSlandice_GridComp
GEOSlake_GridComp
GEOSland_GridComp
GEOSroute_GridComp
GEOSsaltwater_GridComp
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ set (alldirs
GEOScatch_GridComp
GEOScatchCN_GridComp
GEOSlana_GridComp
GEOSroute_GridComp
GEOSigni_GridComp
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ module GEOS_LandGridCompMod
use GEOS_CatchGridCompMod, only : CatchSetServices => SetServices
use GEOS_CatchCNGridCompMod, only : CatchCNSetServices => SetServices
use GEOS_IgniGridCompMod, only : IgniSetServices => SetServices
! use GEOS_RouteGridCompMod, only : RouteSetServices => SetServices

implicit none
private
Expand All @@ -45,8 +44,8 @@ module GEOS_LandGridCompMod


integer :: VEGDYN
integer, allocatable :: CATCH(:), ROUTE (:), CATCHCN (:)
integer :: LSM_CHOICE, RUN_ROUTE, DO_GOSWIM
integer, allocatable :: CATCH(:), CATCHCN(:)
integer :: LSM_CHOICE, DO_GOSWIM
integer :: IGNI
logical :: DO_FIRE_DANGER

Expand All @@ -68,7 +67,7 @@ subroutine SetServices ( GC, RC )
! !DESCRIPTION: The SetServices for the Physics GC needs to register its
! Initialize and Run. It uses the MAPL\_Generic construct for defining
! state specs and couplings among its children. In addition, it creates the
! children GCs (VegDyn, Catch, CatchCN, Route) and runs their respective SetServices.
! children GCs (VegDyn, Catch, CatchCN) and runs their respective SetServices.

!EOP

Expand All @@ -84,7 +83,7 @@ subroutine SetServices ( GC, RC )

character(len=ESMF_MAXSTR) :: GCName
type(ESMF_Config) :: CF, SCF
integer :: NUM_CATCH
integer :: NUM_CATCH_ENS
integer :: I
character(len=ESMF_MAXSTR) :: TMP
type(MAPL_MetaComp),pointer :: MAPL=>null()
Expand Down Expand Up @@ -134,7 +133,7 @@ subroutine SetServices ( GC, RC )
call MAPL_GridCompSetEntryPoint ( GC, ESMF_METHOD_RUN, Run2, RC=STATUS )
VERIFY_(STATUS)

call ESMF_ConfigGetAttribute ( CF, NUM_CATCH, Label="NUM_CATCH_ENSEMBLES:", default=1, RC=STATUS)
call ESMF_ConfigGetAttribute ( CF, NUM_CATCH_ENS, Label="NUM_CATCH_ENSEMBLES:", default=1, RC=STATUS)
VERIFY_(STATUS)

!------------------------------------------------------------
Expand All @@ -146,15 +145,13 @@ subroutine SetServices ( GC, RC )
VERIFY_(STATUS)

! Get CHOICE OF Land Surface Model (1:Catch, 2:Catch-CN)
! and Runoff Routing Model (0: OFF, 1: ON)
! -------------------------------------------------------

call MAPL_GetResource ( MAPL, LSM_CHOICE, Label="LSM_CHOICE:", DEFAULT=1, RC=STATUS)
VERIFY_(STATUS)
call MAPL_GetResource (MAPL, SURFRC, label = 'SURFRC:', default = 'GEOS_SurfaceGridComp.rc', RC=STATUS) ; VERIFY_(STATUS)
SCF = ESMF_ConfigCreate(rc=status) ; VERIFY_(STATUS)
call ESMF_ConfigLoadFile(SCF,SURFRC,rc=status) ; VERIFY_(STATUS)
call MAPL_GetResource (SCF, RUN_ROUTE, label='RUN_ROUTE:', DEFAULT=0, __RC__ )
call MAPL_GetResource (SCF, DO_GOSWIM, label='N_CONST_LAND4SNWALB:', DEFAULT=0, __RC__ )
call MAPL_GetResource (SCF, DO_FIRE_DANGER, label='FIRE_DANGER:', DEFAULT=.false., __RC__ )
call ESMF_ConfigDestroy (SCF, __RC__)
Expand All @@ -163,13 +160,13 @@ subroutine SetServices ( GC, RC )

CASE (1)

allocate (CATCH(NUM_CATCH), stat=status)
allocate (CATCH(NUM_CATCH_ENS), stat=status)
VERIFY_(STATUS)
if (NUM_CATCH == 1) then
if (NUM_CATCH_ENS == 1) then
CATCH(1) = MAPL_AddChild(GC, NAME='CATCH'//trim(tmp), SS=CatchSetServices, RC=STATUS)
VERIFY_(STATUS)
else
do I = 1, NUM_CATCH
do I = 1, NUM_CATCH_ENS
WRITE(TMP,'(I3.3)') I
GCName = 'ens' // trim(TMP) // ':CATCH'
CATCH(I) = MAPL_AddChild(GC, NAME=GCName, SS=CatchSetServices, RC=STATUS)
Expand All @@ -179,13 +176,13 @@ subroutine SetServices ( GC, RC )

CASE (2,3)

allocate (CATCHCN(NUM_CATCH), stat=status)
allocate (CATCHCN(NUM_CATCH_ENS), stat=status)
VERIFY_(STATUS)
if (NUM_CATCH == 1) then
if (NUM_CATCH_ENS == 1) then
CATCHCN(1) = MAPL_AddChild(GC, NAME='CATCHCN'//trim(tmp), SS=CatchCNSetServices, RC=STATUS)
VERIFY_(STATUS)
else
do I = 1, NUM_CATCH
do I = 1, NUM_CATCH_ENS
WRITE(TMP,'(I3.3)') I
GCName = 'ens' // trim(TMP) // ':CATCHCN'
CATCHCN(I) = MAPL_AddChild(GC, NAME=GCName, SS=CatchCNSetServices, RC=STATUS)
Expand All @@ -195,20 +192,6 @@ subroutine SetServices ( GC, RC )

END SELECT

! IF(RUN_ROUTE == 1) THEN
! if (NUM_CATCH == 1) then
! ROUTE(1) = MAPL_AddChild(GC, NAME='ROUTE', SS=RouteSetServices, RC=STATUS)
! VERIFY_(STATUS)
! else
! do I = 1, NUM_CATCH
! WRITE(TMP,'(I3.3)') I
! GCName = 'ens' // trim(TMP) // ':ROUTE'
! ROUTE(I) = MAPL_AddChild(GC, NAME=GCName, SS=RouteSetServices, RC=STATUS)
! VERIFY_(STATUS)
! end do
! end if
! ENDIF

if (DO_FIRE_DANGER) then
IGNI = MAPL_AddChild(GC, NAME='IGNI'//trim(tmp), SS=IgniSetServices, RC=STATUS)
VERIFY_(STATUS)
Expand Down Expand Up @@ -1377,14 +1360,6 @@ subroutine SetServices ( GC, RC )
CHILD_ID = VEGDYN,&
RC=STATUS )
VERIFY_(STATUS)
! IF(RUN_ROUTE == 1) THEN
! call MAPL_AddExportSpec ( GC, &
! SHORT_NAME = 'QOUTFLOW', &
! CHILD_ID = ROUTE(1), &
! RC=STATUS )
! VERIFY_(STATUS)
! ENDIF


if (DO_FIRE_DANGER) then
call MAPL_AddExportSpec ( GC, SHORT_NAME = 'FFMC', CHILD_ID = IGNI, __RC__ )
Expand Down Expand Up @@ -1426,7 +1401,7 @@ subroutine SetServices ( GC, RC )

! !CONNECTIONS:

DO I = 1, NUM_CATCH
DO I = 1, NUM_CATCH_ENS

SELECT CASE (LSM_CHOICE)

Expand All @@ -1453,17 +1428,6 @@ subroutine SetServices ( GC, RC )
VERIFY_(STATUS)
end if

! IF(RUN_ROUTE == 1) THEN
! call MAPL_AddConnectivity ( &
! GC ,&
! SHORT_NAME = (/'RUNOFF '/) ,&
! SRC_ID = CATCH(I) ,&
! DST_ID = ROUTE(I) ,&
!
! RC=STATUS )
! VERIFY_(STATUS)
! ENDIF

CASE (2,3)
call MAPL_AddConnectivity ( &
GC , &
Expand All @@ -1486,19 +1450,9 @@ subroutine SetServices ( GC, RC )
VERIFY_(STATUS)
end if

! IF(RUN_ROUTE == 1) THEN
! call MAPL_AddConnectivity ( &
! GC ,&
! SHORT_NAME = (/'RUNOFF '/) ,&
! SRC_ID = CATCHCN(I) ,&
! DST_ID = ROUTE(I) ,&
!
! RC=STATUS )
! VERIFY_(STATUS)
! ENDIF
END SELECT
END DO


call MAPL_TimerAdd(GC, name="INITIALIZE" ,RC=STATUS)
VERIFY_(STATUS)
Expand Down Expand Up @@ -1714,7 +1668,7 @@ subroutine Run2(GC, IMPORT, EXPORT, CLOCK, RC )
type (ESMF_State), pointer :: GEX(:)
character(len=ESMF_MAXSTR),pointer :: GCnames(:)

integer :: I
integer :: I, phase

!=============================================================================

Expand Down

This file was deleted.

Loading
Loading