Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync develop into main #717

Merged
merged 130 commits into from
Mar 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
130 commits
Select commit Hold shift + click to select a range
364b7fd
add clam_varpar use statement
gmao-jkolassa Dec 7, 2022
ebb0739
add dependencies for CLM directories
gmao-jkolassa Dec 7, 2022
6d59096
cleanup of CatchCN constants
gmao-jkolassa Dec 7, 2022
c92d007
WIP: Initial commit of IGNI
adarmenov Dec 15, 2022
286823f
Condense the import spec.
adarmenov Dec 16, 2022
59e392d
Refactor - remove unused variables
adarmenov Dec 16, 2022
f52b6ec
Enable/disable calculation of fire danger at runtime
adarmenov Dec 16, 2022
4c14bf6
Merge branch 'develop' into feature/jkolassa_catchCNrst_cleanup
gmao-jkolassa Dec 20, 2022
283a4ea
replace orbital and day length subroutines with MAPL versions
gmao-jkolassa Dec 20, 2022
8835309
removing naming conflict
gmao-jkolassa Dec 20, 2022
de9b2f4
replace orbital and daylength routines with MAPL functions and import…
gmao-jkolassa Dec 20, 2022
db806a8
change variable names
gmao-jkolassa Dec 20, 2022
bd0c61b
changing variable names in function call
gmao-jkolassa Dec 20, 2022
fdd444e
Use PRLAND
adarmenov Dec 22, 2022
3d8d268
pointing to parameters in shared parameter file
gmao-jkolassa Dec 22, 2022
bbcc1a1
pointing to parameters in shared parameter file
gmao-jkolassa Dec 22, 2022
d4a0c6e
importing CatchCN parameters from shared file
gmao-jkolassa Dec 22, 2022
89c88b0
importing CatchCN parameters from shared file
gmao-jkolassa Dec 22, 2022
e336ad9
new shared parameter file for CatchCN
gmao-jkolassa Dec 22, 2022
544bf08
updating CMake file
gmao-jkolassa Dec 22, 2022
ee643d6
correct spelling
gmao-jkolassa Dec 23, 2022
627703b
adding share parameter file
gmao-jkolassa Dec 23, 2022
0128031
Refactor CFFWI
adarmenov Dec 23, 2022
9ecc254
Add tests for CFFWI
adarmenov Dec 23, 2022
5d67cd8
change to new inputs location
biljanaorescanin Dec 29, 2022
b7d3f5d
create orbit object
weiyuan-jiang Jan 4, 2023
9df6bfc
get orbital constants from MAPL
weiyuan-jiang Jan 5, 2023
339bcaf
adding ESMF calendar generation
gmao-jkolassa Jan 9, 2023
8557d56
WIP: Test the MAPL local solar noon functionality; tidy up comments.
adarmenov Jan 9, 2023
7454ae2
Refactor the CFFWI module.
adarmenov Jan 10, 2023
22fe4cd
Remove unused code from the CFFWI module.
adarmenov Jan 10, 2023
9f25dc0
Include latitude considerations in adapting the CFFWI module for glob…
adarmenov Jan 11, 2023
ec985ff
remove use of link "CATCH"
biljanaorescanin Jan 11, 2023
adabf58
typo
biljanaorescanin Jan 11, 2023
4f741bb
adding echo
biljanaorescanin Jan 12, 2023
d24deb8
minor edit
biljanaorescanin Jan 12, 2023
928f7a1
text edit 2
biljanaorescanin Jan 12, 2023
0f42f2f
Refactor the 'noon LST' code.
adarmenov Jan 13, 2023
e9eaf0a
Add resource file
adarmenov Jan 17, 2023
7b41d29
simplifying MAPL orbit create call
gmao-jkolassa Jan 17, 2023
bee4b01
fix order of inputs in orbit create call
gmao-jkolassa Jan 17, 2023
e64be68
Implement hourly FFMC in the CFFWI module
adarmenov Jan 17, 2023
2a71456
Fold hourly and daily FFMC into a single function
adarmenov Jan 17, 2023
94606d8
Use the 'universal' FFMC function in GEOS and the CFFWI unit test
adarmenov Jan 17, 2023
e992a8f
create config type
gmao-jkolassa Jan 18, 2023
785e8da
Revise the rainfall effect in the hourly FFMC model
adarmenov Jan 18, 2023
b85811d
Increase the precision of the 147.2 multiplier in the FF scale equations
adarmenov Jan 18, 2023
601ae40
Generalize FFMC for time steps less than one hour.
adarmenov Jan 18, 2023
ddb93fb
Implement consistent FF scale conversions in the CFFWI module
adarmenov Jan 18, 2023
d06df1b
Introduce modification to ISI at extreme winds
adarmenov Jan 18, 2023
ab605b1
Initial implementation of grass fuel moisture code (GFMC)
adarmenov Jan 18, 2023
8235a21
initialize ESMF
weiyuan-jiang Jan 20, 2023
686560b
finalize esmf right
weiyuan-jiang Jan 20, 2023
121b984
more changes
weiyuan-jiang Jan 20, 2023
77fd81b
resolve conflict with mk_runofftbl.F90 from develop
biljanaorescanin Jan 23, 2023
b8e2c38
Merge branch 'develop' into feature/borescan_restr_bcs_inputs
biljanaorescanin Jan 23, 2023
675d749
Add comments related to moisture content in the FFMC and GFMC functions.
adarmenov Jan 23, 2023
22fdefa
Initial implementation of hourly CFFWI
adarmenov Jan 24, 2023
30eb65c
Add a runtime option to select which local noon method is used in the
adarmenov Jan 24, 2023
28361ee
Merge branch 'develop' into feature/jkolassa_catchCNrst_cleanup
weiyuan-jiang Jan 25, 2023
91a416e
Multiphase RUN - daily and hourly CFFWI are now done in RUN2.
adarmenov Jan 25, 2023
f2b8ead
in daylength call pass latitudes in radians
gmao-jkolassa Jan 26, 2023
b235301
Set ISI and FWI to zero if there is snow on the ground
adarmenov Jan 26, 2023
3817f3a
Provide brief description of the Igni Gridded Component
adarmenov Jan 26, 2023
76a8329
Implement gridded versions of the CFFWI exports
adarmenov Jan 26, 2023
b62f670
Include GFMC in the Igni and SURFACE export specs.
adarmenov Jan 27, 2023
d768b13
Better placement of comments in the CFFWI module
adarmenov Jan 27, 2023
95379c2
Add snow depth (SNOWDP) to the CATCH(CN)-IGNI connectivity spec
adarmenov Jan 27, 2023
adc05a3
further clean up the path
weiyuan-jiang Jan 27, 2023
d68ec7c
Merge branch 'feature/borescan_restr_bcs_inputs' of github.com:GEOS-E…
weiyuan-jiang Jan 27, 2023
2dcbbe4
Update the value of nominal fine fuel load in CFFWI
adarmenov Jan 27, 2023
ae893a0
add a missing "."
weiyuan-jiang Jan 27, 2023
feb7df8
Disable calls to MAPL_SunGetLocalSolarHourAngle()
adarmenov Feb 1, 2023
8de7ecf
deprecated program commented out
biljanaorescanin Feb 1, 2023
df4695f
Use logical type for the DO_FIRE_DANGER flag
adarmenov Feb 1, 2023
04821aa
Merge branch 'develop' into feature/adarmenov/ignio
adarmenov Feb 1, 2023
c0e4725
Merge branch 'develop' into feature/adarmenov/ignio
biljanaorescanin Feb 1, 2023
3e52a53
minor cleanup; tentatively removed create_vegdyn_ndvi.F90, which seem…
gmao-rreichle Feb 3, 2023
a499b26
more cleanup
biljanaorescanin Feb 4, 2023
12715cd
renamed NCAR_TOPO_GMTED to just TOPO
biljanaorescanin Feb 6, 2023
e9bdda4
Add VPD over land
adarmenov Feb 8, 2023
658a745
bring outdated file back
biljanaorescanin Feb 8, 2023
3448260
restore mkLISTilesPara.F90 file
biljanaorescanin Feb 8, 2023
3f1615d
move file to obsolete directory
biljanaorescanin Feb 8, 2023
4161965
Merge branch 'feature/adarmenov/ignio-wip' into feature/adarmenov/ignio
adarmenov Feb 8, 2023
3551794
fixed typos (bcs_utils.py)
gmao-rreichle Feb 8, 2023
1606576
removed stray comment line (mkCatchParam.F90)
gmao-rreichle Feb 8, 2023
77e8d11
removed obsolete comments (mkEASETilesParam.F90)
gmao-rreichle Feb 8, 2023
5e9cf75
removed empty lines that were confusing (mkLandRaster.F90)
gmao-rreichle Feb 8, 2023
5bd109d
clean up MAKE_BCS_INPUT_DIR
weiyuan-jiang Feb 9, 2023
8836b7c
Merge pull request #694 from GEOS-ESM/feature/borescan_restr_bcs_inputs
sdrabenh Feb 10, 2023
30cc94b
remove unused code
bena-nasa Feb 14, 2023
e1aa8ce
remove prints
bena-nasa Feb 14, 2023
ab03f96
cleanup and reorganization of files in Raster
gmao-rreichle Feb 21, 2023
da6f85f
added CMakeLists.txt into new dir [..]/Raster/preproc/
gmao-rreichle Feb 21, 2023
af179a5
moved script "compile_mk_runoff" to [..]/Raster/obsolete/
gmao-rreichle Feb 22, 2023
7b67fbf
add cmake, build without installation
weiyuan-jiang Feb 23, 2023
5b4bd4e
rm duplicated ldas time utils
weiyuan-jiang Feb 27, 2023
74161af
rm Raster.h for MAPL error handling
weiyuan-jiang Feb 27, 2023
f9863fe
Merge branch 'develop' into feature/adarmenov/ignio
sdrabenh Feb 27, 2023
8584b70
Merge pull request #699 from GEOS-ESM/feature/adarmenov/ignio
sdrabenh Feb 27, 2023
20c680b
Merge branch 'develop' into feature/bmauer/fixes-#704
sdrabenh Feb 27, 2023
3c6349d
Merge branch 'develop' into feature/rreichle/make_bcs_cleanup
biljanaorescanin Feb 27, 2023
a81d46c
Merge pull request #705 from GEOS-ESM/feature/bmauer/fixes-#704
sdrabenh Feb 27, 2023
bd43819
Merge branch 'develop' into feature/rreichle/make_bcs_cleanup
biljanaorescanin Feb 27, 2023
3a5fcd3
main code cleanup; adding code dependencies
biljanaorescanin Feb 27, 2023
76855df
Refactor ISI modulation by snow
adarmenov Feb 28, 2023
77d5b5d
Merge branch 'develop' into feature/adarmenov/ignio
adarmenov Feb 28, 2023
5a03718
Merge branch 'feature/adarmenov/ignio-wip' into feature/adarmenov/ignio
adarmenov Feb 28, 2023
7660b20
get co2_monthly file from rc file
weiyuan-jiang Feb 28, 2023
912d041
Merge branch 'feature/rreichle/make_bcs_cleanup' of github.com:GEOS-E…
weiyuan-jiang Feb 28, 2023
68dde1d
changing lib name to default (./makebcs/CMakeLists.txt)
gmao-rreichle Mar 1, 2023
9e83393
moved IDL tools for snow alb into ./snow subdir; fixed typos in comments
gmao-rreichle Mar 1, 2023
3ffd7a6
more comments
biljanaorescanin Mar 2, 2023
e55c581
edited comment (get_snow_alb_mod10a1_30arcsec.pro)
gmao-rreichle Mar 2, 2023
4e50991
Merge branch 'develop' into feature/jkolassa_catchCNrst_cleanup
gmao-jkolassa Mar 2, 2023
2ac19b0
make_bcs modified to add a new 0.66 degree MOM6 grid
Mar 2, 2023
077bb4d
Merge branch 'develop' into yv/feature/mom6-0.66deg
Mar 2, 2023
7028ee0
Merge pull request #710 from GEOS-ESM/feature/adarmenov/ignio
sdrabenh Mar 6, 2023
2f39435
Merge branch 'develop' into feature/rreichle/make_bcs_cleanup
sdrabenh Mar 6, 2023
5b03ac9
Merge branch 'develop' into yv/feature/mom6-0.66deg
sdrabenh Mar 6, 2023
817325d
Merge branch 'develop' into feature/jkolassa_catchCNrst_cleanup
gmao-jkolassa Mar 6, 2023
aee586c
360x210 MOM6 removed from make_bcs. Fixed prompt for ocean model.
Mar 6, 2023
69d1e8d
Merge branch 'yv/feature/mom6-0.66deg' of github.com:GEOS-ESM/GEOSgcm…
Mar 6, 2023
9cfd09c
Merge pull request #707 from GEOS-ESM/feature/rreichle/make_bcs_cleanup
sdrabenh Mar 6, 2023
19d12f8
Merge branch 'develop' into yv/feature/mom6-0.66deg
gmao-rreichle Mar 6, 2023
e4aa8dc
very minor MOM5/6 cleanup (MOM_VERSION init, comments, whitespace)
gmao-rreichle Mar 6, 2023
b513561
Merge pull request #712 from GEOS-ESM/yv/feature/mom6-0.66deg
mathomp4 Mar 6, 2023
bfd00c7
Merge branch 'develop' into feature/jkolassa_catchCNrst_cleanup
biljanaorescanin Mar 7, 2023
d4775d5
Merge pull request #682 from GEOS-ESM/feature/jkolassa_catchCNrst_cle…
sdrabenh Mar 7, 2023
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 @@ -711,11 +711,6 @@ subroutine RUN ( GC, IMPORT, EXPORT, CLOCK, RC )
real :: bgstressmax
real, pointer, dimension(:,:) :: LATS

character(len=ESMF_MAXSTR) :: GRIDNAME
character(len=4) :: imchar
character(len=2) :: dateline
integer :: imsize,nn

! Rayleigh friction parameters

REAL :: H0, HH, Z1, TAU1
Expand Down Expand Up @@ -752,16 +747,6 @@ subroutine RUN ( GC, IMPORT, EXPORT, CLOCK, RC )
RC=STATUS )
VERIFY_(STATUS)

! Get grid name to determine IMSIZE
call MAPL_GetResource(MAPL,GRIDNAME,'AGCM_GRIDNAME:', RC=STATUS)
VERIFY_(STATUS)
GRIDNAME = AdjustL(GRIDNAME)
nn = len_trim(GRIDNAME)
dateline = GRIDNAME(nn-1:nn)
imchar = GRIDNAME(3:index(GRIDNAME,'x')-1)
read(imchar,*) imsize
if(dateline.eq.'CF') imsize = imsize*4

! Gravity wave drag
! -----------------

Expand Down

Large diffs are not rendered by default.

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

esma_add_library (${this}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
module GEOS_LandGridCompMod

!BOP
! !MODULE: GEOS_LandGridCompMod -- A Module to combine VegDyn and Catch Gridded Components
! !MODULE: GEOS_LandGridCompMod -- A Module to combine VegDyn and Catch, and Igni Gridded Components

! !DESCRIPTION: This gridded component operates on the land tiles as
! as child of GEOS\_SurfaceGridComp. The core functionality is the
Expand All @@ -30,6 +30,7 @@ module GEOS_LandGridCompMod
use GEOS_VegdynGridCompMod, only : VegdynSetServices => SetServices
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
Expand All @@ -45,7 +46,9 @@ module GEOS_LandGridCompMod

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

contains

Expand Down Expand Up @@ -153,6 +156,7 @@ subroutine SetServices ( GC, RC )
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__)

SELECT CASE (LSM_CHOICE)
Expand Down Expand Up @@ -204,7 +208,14 @@ subroutine SetServices ( GC, RC )
! end do
! end if
! ENDIF


if (DO_FIRE_DANGER) then
IGNI = MAPL_AddChild(GC, NAME='IGNI'//trim(tmp), SS=IgniSetServices, RC=STATUS)
VERIFY_(STATUS)
else
IGNI = -1
end if

!BOS

!------------------------------------------------------------
Expand Down Expand Up @@ -1343,6 +1354,37 @@ subroutine SetServices ( GC, RC )
! VERIFY_(STATUS)
! ENDIF


if (DO_FIRE_DANGER) then
call MAPL_AddExportSpec ( GC, SHORT_NAME = 'FFMC', CHILD_ID = IGNI, __RC__ )
call MAPL_AddExportSpec ( GC, SHORT_NAME = 'GFMC', CHILD_ID = IGNI, __RC__ )
call MAPL_AddExportSpec ( GC, SHORT_NAME = 'DMC', CHILD_ID = IGNI, __RC__ )
call MAPL_AddExportSpec ( GC, SHORT_NAME = 'DC', CHILD_ID = IGNI, __RC__ )
call MAPL_AddExportSpec ( GC, SHORT_NAME = 'ISI', CHILD_ID = IGNI, __RC__ )
call MAPL_AddExportSpec ( GC, SHORT_NAME = 'BUI', CHILD_ID = IGNI, __RC__ )
call MAPL_AddExportSpec ( GC, SHORT_NAME = 'FWI', CHILD_ID = IGNI, __RC__ )
call MAPL_AddExportSpec ( GC, SHORT_NAME = 'DSR', CHILD_ID = IGNI, __RC__ )

call MAPL_AddExportSpec ( GC, SHORT_NAME = 'FFMC_DAILY', CHILD_ID = IGNI, __RC__ )
call MAPL_AddExportSpec ( GC, SHORT_NAME = 'DMC_DAILY', CHILD_ID = IGNI, __RC__ )
call MAPL_AddExportSpec ( GC, SHORT_NAME = 'DC_DAILY', CHILD_ID = IGNI, __RC__ )
call MAPL_AddExportSpec ( GC, SHORT_NAME = 'ISI_DAILY', CHILD_ID = IGNI, __RC__ )
call MAPL_AddExportSpec ( GC, SHORT_NAME = 'BUI_DAILY', CHILD_ID = IGNI, __RC__ )
call MAPL_AddExportSpec ( GC, SHORT_NAME = 'FWI_DAILY', CHILD_ID = IGNI, __RC__ )
call MAPL_AddExportSpec ( GC, SHORT_NAME = 'DSR_DAILY', CHILD_ID = IGNI, __RC__ )

call MAPL_AddExportSpec ( GC, SHORT_NAME = 'FFMC_DAILY_', CHILD_ID = IGNI, __RC__ )
call MAPL_AddExportSpec ( GC, SHORT_NAME = 'DMC_DAILY_', CHILD_ID = IGNI, __RC__ )
call MAPL_AddExportSpec ( GC, SHORT_NAME = 'DC_DAILY_', CHILD_ID = IGNI, __RC__ )
call MAPL_AddExportSpec ( GC, SHORT_NAME = 'ISI_DAILY_', CHILD_ID = IGNI, __RC__ )
call MAPL_AddExportSpec ( GC, SHORT_NAME = 'BUI_DAILY_', CHILD_ID = IGNI, __RC__ )
call MAPL_AddExportSpec ( GC, SHORT_NAME = 'FWI_DAILY_', CHILD_ID = IGNI, __RC__ )
call MAPL_AddExportSpec ( GC, SHORT_NAME = 'DSR_DAILY_', CHILD_ID = IGNI, __RC__ )

call MAPL_AddExportSpec ( GC, SHORT_NAME = 'VPD', CHILD_ID = IGNI, __RC__ )
end if


!EOS

!------------------------------------------------------------
Expand All @@ -1367,6 +1409,19 @@ subroutine SetServices ( GC, RC )
RC=STATUS )
VERIFY_(STATUS)

if (DO_FIRE_DANGER) then
call MAPL_AddConnectivity ( &
GC, &
SHORT_NAME = (/ 'MOT2M ', 'MOQ2M ', &
'MOU10M ', 'MOV10M ', &
'PRLAND ', 'SWDOWNLAND', &
'ASNOW ', 'SNOWDP ' /), &
DST_ID = IGNI, &
SRC_ID = CATCH(I), &
RC = STATUS )
VERIFY_(STATUS)
end if

! IF(RUN_ROUTE == 1) THEN
! call MAPL_AddConnectivity ( &
! GC ,&
Expand All @@ -1387,6 +1442,19 @@ subroutine SetServices ( GC, RC )
SRC_ID = VEGDYN , &
RC=STATUS )

if (DO_FIRE_DANGER) then
call MAPL_AddConnectivity ( &
GC, &
SHORT_NAME = (/ 'MOT2M ', 'MOQ2M ', &
'MOU10M ', 'MOV10M ', &
'PRLAND ', 'SWDOWNLAND', &
'ASNOW ', 'SNOWDP ' /), &
DST_ID = IGNI, &
SRC_ID = CATCHCN(I), &
RC = STATUS )
VERIFY_(STATUS)
end if

! IF(RUN_ROUTE == 1) THEN
! call MAPL_AddConnectivity ( &
! GC ,&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ module clm_varpar
! Module containing CLM parameters
!
! !USES:

use clm_varpar_shared, only : VAR_COL =>VAR_COL_40, VAR_PFT => VAR_PFT_40, &
numpft => numpft_CN, NUM_ZON => NUM_ZON_CN, &
NUM_VEG => NUM_VEG_CN

!
! !PUBLIC TYPES:
implicit none
Expand All @@ -23,7 +28,6 @@ module clm_varpar
! Define indices used in surface file read
! maxpatch_pft = max number of plant functional types in naturally vegetated landunit

integer, parameter :: numpft = 19 ! actual # of pfts (without bare)
integer :: maxpatch_pft

! clm_varpar_init seems to do something similar; less prone to error to move
Expand All @@ -39,10 +43,6 @@ module clm_varpar
! CatchCN parameters
! ------------------

integer, parameter, PUBLIC :: NUM_ZON=3 ! number of CN hydrology zones per tile
integer, parameter, PUBLIC :: NUM_VEG=4 ! number of CN PFTs per zone
integer, parameter, PUBLIC :: VAR_COL=40 ! number of CN column restart variables
integer, parameter, PUBLIC :: VAR_PFT=74 ! number of CN PFT variables per column
real, parameter, PUBLIC, dimension(NUM_ZON) :: CN_zone_weight = (/0.10,0.45,0.45/) ! gkw: tunable; must sum to 1
integer, parameter, PUBLIC :: map_cat(0:numpft) = (/4,3,3,3,1,1,2,2,2,5,5,5,6,4,4,4,4,4,4,4/) ! gkw: 0 -> 6, since 8 now gone

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5167,13 +5167,10 @@ subroutine Driver ( RC )
! Variables for FPAR
! --------------------------
real , allocatable, dimension (:,:) :: parzone
character(len=ESMF_MAXSTR) :: Co2_CycleFile

IAm=trim(COMP_NAME)//"::RUN2::Driver"

! Begin

IAm=trim(COMP_NAME)//"Driver"

! --------------------------------------------------------------------------
! Get time step from configuration
! --------------------------------------------------------------------------
Expand Down Expand Up @@ -5656,7 +5653,11 @@ subroutine Driver ( RC )
call MPI_Info_create(info, STATUS); VERIFY_(status)
call MPI_Info_set(info, "romio_cb_read", "automatic", STATUS); VERIFY_(status)

STATUS = NF_OPEN ('CO2_MonthlyMean_DiurnalCycle.nc4', NF_NOWRITE, CTfile); VERIFY_(status)
call MAPL_GetResource (MAPL, CO2_CycleFile, label = 'CO2_MonthlyMean_DiurnalCycle_FILE:', &
default = 'CO2_MonthlyMean_DiurnalCycle.nc4', RC=STATUS )
VERIFY_(STATUS)

STATUS = NF_OPEN (trim(CO2_CycleFile), NF_NOWRITE, CTfile); VERIFY_(status)

allocate (CT_CO2V (1: NUNQ, 1:12, 1:8))
allocate (CTCO2_TMP (1:CT_grid_N_lon, 1:CT_grid_N_lat, 1:12, 1:8))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ module clm_varpar
!
! !USES:
!
use clm_varpar_shared, only : VAR_COL =>VAR_COL_45, VAR_PFT => VAR_PFT_45, &
numpft => numpft_CN, NUM_ZON => NUM_ZON_CN, &
NUM_VEG => NUM_VEG_CN
! !PUBLIC TYPES:
implicit none
save
Expand All @@ -26,7 +29,6 @@ module clm_varpar
! Define indices used in surface file read
! maxpatch_pft = max number of plant functional types in naturally vegetated landunit

integer, parameter :: numpft = 19 ! actual # of pfts (without bare), same as in Catchment-CN.clm4
integer :: maxpatch_pft

! clm_varpar_init seems to do something similar; less prone to error to move
Expand Down Expand Up @@ -85,10 +87,6 @@ module clm_varpar
! 8: DESERT => 0
! 9: ICE => n/a

integer, parameter, PUBLIC :: NUM_ZON=3 ! number of CN hydrology zones per tile
integer, parameter, PUBLIC :: NUM_VEG=4 ! number of CN PFTs per zone
integer, parameter, PUBLIC :: VAR_COL=35 ! number of CN column restart variables
integer, parameter, PUBLIC :: VAR_PFT=75 ! number of CN PFT variables per column
real, parameter, PUBLIC, dimension(NUM_ZON) :: CN_zone_weight = (/0.10,0.45,0.45/) ! gkw: tunable; must sum to 1
integer, parameter, PUBLIC :: map_cat(0:numpft) = (/4,3,3,3,1,1,2,2,2,5,5,5,6,4,4,4,4,4,4,4/)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5115,7 +5115,7 @@ subroutine Driver ( RC )
real, allocatable, dimension(:,:,:) :: pft

real, allocatable, dimension(:) :: lnfm
character(len=ESMF_MAXSTR) :: LNFMFile
character(len=ESMF_MAXSTR) :: LNFMFile, CO2_CycleFile

integer :: ntile, nv, dpy, ierr, iok, ndt
integer, save :: year_prev = -9999
Expand Down Expand Up @@ -5653,7 +5653,9 @@ subroutine Driver ( RC )
call MPI_Info_create(info, STATUS); VERIFY_(status)
call MPI_Info_set(info, "romio_cb_read", "automatic", STATUS); VERIFY_(status)

STATUS = NF_OPEN ('CO2_MonthlyMean_DiurnalCycle.nc4', NF_NOWRITE, CTfile); VERIFY_(status)
call MAPL_GetResource (MAPL, CO2_CycleFile, label = 'CO2_MonthlyMean_DiurnalCycle_FILE:', default = 'CO2_MonthlyMean_DiurnalCycle.nc4', RC=STATUS )
VERIFY_(STATUS)
STATUS = NF_OPEN (trim(CO2_CycleFile), NF_NOWRITE, CTfile); VERIFY_(status)

allocate (CT_CO2V (1: NUNQ, 1:12, 1:8))
allocate (CTCO2_TMP (1:CT_grid_N_lon, 1:CT_grid_N_lat, 1:12, 1:8))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ esma_set_this(OVERRIDE GEOS_CatchCNShared)
set (srcs
nanMod.F90
catchmentCN.F90
catchcn_iau.F90)
catchcn_iau.F90
clm_varpar_shared.F90)

esma_add_library (${this}
SRCS ${srcs}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
module clm_varpar_shared

!-----------------------------------------------------------------------
!BOP
!
! !MODULE: clm_varpar_shared
!
! !DESCRIPTION:
! Module containing CLM parameters
!
! !USES:
!
! !PUBLIC TYPES:
implicit none
save
!
! Define number of levels

integer, parameter :: numpft_CN = 19 ! actual # of pfts (without bare), same as in Catchment-CN.clm4

integer, parameter, PUBLIC :: NUM_ZON_CN=3 ! number of CN hydrology zones per tile
integer, parameter, PUBLIC :: NUM_VEG_CN=4 ! number of CN PFTs per zone
integer, parameter, PUBLIC :: VAR_COL_40=40 ! number of CN column restart variables
integer, parameter, PUBLIC :: VAR_PFT_40=74 ! number of CN PFT variables per column
integer, parameter, PUBLIC :: VAR_COL_45=35 ! number of CN column restart variables
integer, parameter, PUBLIC :: VAR_PFT_45=75 ! number of CN PFT variables per column

!------------------------------------------------------------------------------
end module clm_varpar_shared
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
esma_set_this ()


set (resource_files
GEOS_IgniGridComp.rc
)

install( FILES ${resource_files}
DESTINATION etc
)

set (srcs
GEOS_IgniGridComp.F90
cffwi.F90
)


esma_add_library (${this}
SRCS ${srcs}
DEPENDENCIES MAPL GEOS_Shared esmf
)

Loading