Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
706 commits
Select commit Hold shift + click to select a range
91c31e9
compute wetness manually
gmao-jkolassa Mar 28, 2023
7348dd5
limit soil decomposition levels to number of soil levels
gmao-jkolassa Mar 28, 2023
24f36c6
update to newest develop
gmao-jkolassa Mar 30, 2023
0eea878
add parenthesis to force order of operations
gmao-jkolassa Mar 30, 2023
701682a
remove unused cold_start option
gmao-jkolassa Apr 6, 2023
7a8bcbf
remove initialization of root fraction as it is initialized in CN_init
gmao-jkolassa May 9, 2023
ce01767
set accumulation flag to true until we have a spun-up CNCLM51 restart…
gmao-jkolassa May 9, 2023
ff6170c
add cold start initialization for water flux variables
gmao-jkolassa May 9, 2023
6a95628
add initialization of soil biogeochemical competition
gmao-jkolassa May 9, 2023
2b10a16
add missing local variables
gmao-jkolassa May 9, 2023
1325120
add missing use statements
gmao-jkolassa May 9, 2023
b6bee98
add missing use statements
gmao-jkolassa May 9, 2023
2cb8e45
add allocation for missing variables
gmao-jkolassa May 9, 2023
e5ac923
correct allocation
gmao-jkolassa May 9, 2023
e86a68c
add fire method initialization
gmao-jkolassa May 9, 2023
a6ffdab
move dt initialization for CN to before CN routines are called
gmao-jkolassa May 9, 2023
b149a3b
add nstep initialization
gmao-jkolassa May 10, 2023
d726982
include first_step detection needed for CLM annual routines
gmao-jkolassa May 11, 2023
bd54e2a
change referencing of CNVeg states
gmao-jkolassa May 11, 2023
dc98d42
add missing use statement
gmao-jkolassa May 11, 2023
dfdf180
add subroutine to get date at beginning of time step
gmao-jkolassa May 11, 2023
afba6a7
add missing use statement
gmao-jkolassa May 11, 2023
b791cc0
create first time step check for CN
gmao-jkolassa May 11, 2023
e93c917
add cold start initialization for some CN product variables
gmao-jkolassa May 16, 2023
e97250f
add cold start initialization for more carbon flux variables
gmao-jkolassa May 16, 2023
f6111bf
initialize index variable
gmao-jkolassa May 16, 2023
779368a
adding cold start initializations
gmao-jkolassa May 16, 2023
06a96c6
fix initialization of fluxes
gmao-jkolassa May 17, 2023
2b3b479
add CN balance type initialization
gmao-jkolassa May 17, 2023
fd7c8aa
update balance type save
gmao-jkolassa May 17, 2023
6b8ffb0
adjusting order of initialization
gmao-jkolassa May 17, 2023
d20b4ce
fix initializations
gmao-jkolassa May 18, 2023
14c03c9
activate treatment of patches
gmao-jkolassa May 18, 2023
c768db1
compute column-level plant nitrogen demand from patch level demand
gmao-jkolassa May 18, 2023
20599e8
initialize nitrogen demand to avoid NaN summation in column-level com…
gmao-jkolassa May 18, 2023
58b1db3
typo fix
gmao-jkolassa May 19, 2023
348beeb
initialize pacth varaibles that go through p2c as spval
gmao-jkolassa May 19, 2023
582abd2
initialize pacth varaibles that go through p2c as spval
gmao-jkolassa May 19, 2023
98970e4
initialize data to spval that is passed to p2g
gmao-jkolassa May 19, 2023
8fd029e
fix initialization of weights at patch level
gmao-jkolassa Jun 1, 2023
35c1e4e
add accidentally deleted line back
gmao-jkolassa Jun 1, 2023
f32eb3f
add initialization for radiation time
gmao-jkolassa Jun 2, 2023
3cceabd
typo fix
gmao-jkolassa Jun 2, 2023
3149a35
fixing variable declaration to account for compiler difference
gmao-jkolassa Jun 2, 2023
82a6d3d
typo fix
gmao-jkolassa Jun 2, 2023
665f457
correct weight calculation
gmao-jkolassa Jun 6, 2023
4a38f08
pass first flag as an input argument to CN_Driver
gmao-jkolassa Jun 6, 2023
92d15b5
code changes to account for fewer PFTs per tile in CatchCN5.1
gmao-jkolassa Jun 15, 2023
91d2ade
move getids.F90 and cleanup (PR#770)
gmao-jkolassa Jun 15, 2023
c447481
typo fixes
gmao-jkolassa Jun 15, 2023
e85bb56
change order of if-statements
gmao-jkolassa Jun 16, 2023
0bba4d3
typo fix
gmao-jkolassa Jun 16, 2023
423f817
update to develop
gmao-jkolassa Jun 16, 2023
9c96eb7
cleanup after develop merge
gmao-jkolassa Jun 16, 2023
922aa49
add missing variable declaration
gmao-jkolassa Jun 16, 2023
436ec64
add missing variable declaration
gmao-jkolassa Jun 16, 2023
d51912b
add missing variable declaration
gmao-jkolassa Jun 16, 2023
b539c53
fixing if-statement
gmao-jkolassa Jun 16, 2023
3c7c065
hardcode CatchCN4.0/4.5 (not 5.1) option in soon to be obsolete mk_GE…
gmao-jkolassa Jun 22, 2023
64fbc1e
hardcoding CatchCN4.0/4.5 versions in soon to be obsolete restart rou…
gmao-jkolassa Jun 22, 2023
c64c1ef
correct LONG_NAME for absorbed and emitted longwave flux
gmao-jkolassa Jun 22, 2023
50e706b
changing hardcoded references to 4 PFTs to 2 PFTs
gmao-jkolassa Jun 22, 2023
24b1b1c
change hardcoded references to 4 PFTs to 2
gmao-jkolassa Jun 22, 2023
7b2f739
change hardcoded references to 4 PFTs to 2
gmao-jkolassa Jun 22, 2023
a750f5c
change hardcoded references to 4 PFTs to 2
gmao-jkolassa Jun 22, 2023
b02ef76
initialize nitrogen product fluxes to zero in all patches
gmao-jkolassa Jun 26, 2023
0f173fc
initialize vcmax to cold start value of 1 in active patches
gmao-jkolassa Jun 30, 2023
f4cabf9
add initialization for photosynthesis variables at every time step
gmao-jkolassa Jun 30, 2023
d6b30a7
only add vegetated patches to soil patch filter
gmao-jkolassa Jun 30, 2023
b51fb7c
fix restart variable size check
gmao-jkolassa Jul 6, 2023
2b1e551
remove print statement that is no longer needed
gmao-jkolassa Jul 6, 2023
0421a80
bug fix in aggregation to gridcell level
gmao-jkolassa Jul 11, 2023
b7c8845
change calculation of soil to root conductance in first soil layer
gmao-jkolassa Sep 12, 2023
1ed89f9
update to latest develop
gmao-jkolassa Sep 12, 2023
b0f5214
change long_name for CDCR2
gmao-jkolassa Sep 12, 2023
aa710dc
manually add wrapper and other missing changes
gmao-jkolassa Sep 12, 2023
73ce2cb
bug fixes
gmao-jkolassa Sep 12, 2023
8855433
fix dtcn bug
gmao-jkolassa Sep 12, 2023
843c4dd
remove RUNSURF as export variable since it is now included in the res…
gmao-jkolassa Sep 13, 2023
c4d95cc
add psn and lmr variables back for now
gmao-jkolassa Sep 13, 2023
da0960e
initialize all used canopy state values to suggested cold start values
gmao-jkolassa Sep 19, 2023
13ce44f
change leaf_mr_vcm parameter to one corresponding to leaf maintenance…
gmao-jkolassa Sep 19, 2023
35172ad
change cold start initialization of alphapsn
gmao-jkolassa Sep 19, 2023
a256fcc
bug fix in density calculation and setting NaN output to 0
gmao-jkolassa Nov 1, 2023
6cfd4be
update to latest develop
gmao-jkolassa Nov 1, 2023
a479597
manually added snow albedo changes in GC
gmao-jkolassa Nov 1, 2023
9ed1fff
typo fix
gmao-jkolassa Nov 1, 2023
da606ec
assigning 90-minute avg photosynthesis variables to CLM types
gmao-jkolassa Nov 2, 2023
3d52042
fix indexing
gmao-jkolassa Nov 2, 2023
449c4e1
add phenology calculations from albedo module
gmao-jkolassa Nov 8, 2023
e62698a
fix pointers in CN_exit and indexing of dayl
gmao-jkolassa Dec 19, 2023
31f18a8
fix typo in CN_exit call
gmao-jkolassa Dec 19, 2023
2539bde
adjust longitude values to [0 360] convention for CLM
gmao-jkolassa Apr 10, 2024
4efcca4
update to latest develop
gmao-jkolassa May 15, 2024
abd21e3
keep Catchment-CN5.1 as LSM_CHOICE=4
gmao-jkolassa May 15, 2024
c35e04f
add missing read for mortality parameters
gmao-jkolassa May 28, 2024
cc3f396
replace constant water stress threshold with dependence on local wilt…
gmao-jkolassa Jun 12, 2024
5096e6f
set fcur and leaf_long parameters for non-evergreen types to values u…
gmao-jkolassa Jun 12, 2024
5578652
pass psn, lmr, and lai as separate variables to CLM routines instead …
gmao-jkolassa Jun 12, 2024
319c163
add wpwet as input to CN_Driver
gmao-jkolassa Jun 12, 2024
70e6df5
adding LAI sum fo CN as restart variable
gmao-jkolassa Jun 12, 2024
398fda1
typo fix
gmao-jkolassa Jun 12, 2024
d8a9a25
add autotrophic and heterotrophic respiration as outputs
gmao-jkolassa Aug 23, 2024
c38cb29
enabling use_felxibleCN
gmao-jkolassa Oct 22, 2024
3a47497
enable allocation of felxible_CN nutrient competition method
gmao-jkolassa Oct 22, 2024
5c5706d
provide wetness from hydrological zones mapped to carbon zones to pho…
gmao-jkolassa Oct 23, 2024
6b670b4
change default configuration
gmao-jkolassa Oct 28, 2024
eee124f
count for number of time steps starts at 0 to be consistent with CLM
gmao-jkolassa Nov 4, 2024
2b59af6
fix ndep assignment
gmao-jkolassa Nov 6, 2024
a2e94f4
enable use of FUN model
gmao-jkolassa Nov 13, 2024
3d182a5
remove vegetation matrix functionality
gmao-jkolassa Nov 13, 2024
2ef74c5
add parameter read and initialization for FUN
gmao-jkolassa Nov 13, 2024
9157b6f
add 365-day running mean of ET as input to CLM routines
gmao-jkolassa Nov 15, 2024
2fbc19a
add nitrogen parameter namelist read
gmao-jkolassa Nov 15, 2024
1906b23
read photosynthesis and canopy state parameters from namelist
gmao-jkolassa Nov 15, 2024
3d54d68
add missing source file
gmao-jkolassa Nov 15, 2024
3392cc4
add missing procedure declaration
gmao-jkolassa Nov 15, 2024
608c321
set fire parameters in namelist file
gmao-jkolassa Nov 15, 2024
bafb7ce
overwrite default parameters with parameters from namelist file
gmao-jkolassa Nov 15, 2024
fa2a1ad
add missing subroutine end statement
gmao-jkolassa Nov 18, 2024
01892d2
bug fixes
gmao-jkolassa Nov 19, 2024
651b3cd
add root profile initialization
gmao-jkolassa Nov 19, 2024
5c9658e
fix root profile namelist read
gmao-jkolassa Nov 19, 2024
3a5e6d3
enable CNFUN
gmao-jkolassa Nov 20, 2024
bc3b559
add initialization for several nitrogen states
gmao-jkolassa Nov 20, 2024
2eb8137
add soil nitrification/denitrification calculations
gmao-jkolassa Nov 20, 2024
e414edd
add soil NH4 and NO3 as restart variables
gmao-jkolassa Nov 22, 2024
2bd3e66
bug fixes
gmao-jkolassa Nov 25, 2024
cb12469
read shared parameters from namelist; comment resetting of soil_decom…
gmao-jkolassa Nov 25, 2024
084716a
read additional soil parameters
gmao-jkolassa Nov 26, 2024
104fa46
temporary sand/clay initialization
gmao-jkolassa Nov 26, 2024
44a5d6a
typo fix
gmao-jkolassa Nov 26, 2024
7a8e91d
change to standard function for reading namelist group in SoilStateIn…
gmao-jkolassa Nov 26, 2024
a2b4df7
remove unnecessary variables
gmao-jkolassa Nov 26, 2024
221b1da
bug fixes
gmao-jkolassa Nov 27, 2024
a17c802
update time step counter
gmao-jkolassa Feb 28, 2025
df09e61
adding inclusion of get_nstep in CN_Driver
gmao-jkolassa Mar 3, 2025
25eef52
bug fix in root respiration calculation
gmao-jkolassa May 20, 2025
b4c3853
add heterotrophic respiration from coarse woody debris as on of the h…
gmao-jkolassa May 20, 2025
4a8d463
bug fixes in configuration
gmao-jkolassa May 20, 2025
647d0bd
fix nlevdecomp_full definition
gmao-jkolassa May 27, 2025
3a5d4cf
increase istep_cn
gmao-jkolassa May 27, 2025
089128a
merge develop
gmao-jkolassa Jun 4, 2025
4c75671
Merge branch 'develop' into feature/jkolassa_cnclm51
gmao-jkolassa Jun 18, 2025
d9b3d78
fix N_CONSTIT and get_nstep kind
weiyuan-jiang Jun 20, 2025
df91b27
Merge branch 'develop' into feature/jkolassa_cnclm51
weiyuan-jiang Jun 20, 2025
3dc717c
manual update to align with latest develop branch
gmao-jkolassa Jun 24, 2025
4438c62
move initialization of CNFUN variables to before CNDriver call
gmao-jkolassa Jun 24, 2025
d2d3fa5
fix permissions test
gmao-jkolassa Jun 30, 2025
b24906e
fix permissions
gmao-jkolassa Jun 30, 2025
b63164e
fix permission
gmao-jkolassa Jun 30, 2025
f05941b
use consistent naming convention
gmao-jkolassa Jul 1, 2025
32d4bbb
Merge branch 'develop' into feature/jkolassa_cnclm51
gmao-jkolassa Jul 1, 2025
68cffda
change default settings for accumulation flags
gmao-jkolassa Jul 1, 2025
91e5c2a
update CN_init module name to be consistent with naming convention
gmao-jkolassa Jul 1, 2025
ff77527
updated syntax to ESMF::ESMF (GEOScatchCNCLM51_GridComp/CMakeLists.txt)
gmao-rreichle Jul 1, 2025
29792ac
clarified PRESCRIBE_DVG implementation: only applies to CatchCNCLM40 …
gmao-rreichle Jul 1, 2025
d7a7445
clarified choice of Z0_FORMULATION, applies to Catch only (GEOS_Surfa…
gmao-rreichle Jul 1, 2025
75c88ff
adding CN_CLM51 namelist file to source code
gmao-jkolassa Jul 7, 2025
8f65689
cleanup
gmao-jkolassa Jul 7, 2025
7498652
update FLWALPHA value for Catchment-CN5.1 to be consistent with Catch…
gmao-jkolassa Jul 7, 2025
b4073df
restore files to develop version, as they will become obsolete
gmao-jkolassa Jul 7, 2025
9a72a35
introduce multiple Z0-formulation options for Catchment-CN5.1
gmao-jkolassa Jul 7, 2025
3347042
Revert "restore files to develop version, as they will become obsolete"
gmao-jkolassa Jul 7, 2025
1b96323
first pass of updating long_name attributes to match M21C file specs;…
gmao-rreichle Jul 7, 2025
abb7d60
correct internal state name
gmao-jkolassa Jul 7, 2025
ee073c5
add Z0-formulation choice in Driver
gmao-jkolassa Jul 7, 2025
86df53e
minimal white-space changes for better vertical alignment (GEOS_Catch…
gmao-rreichle Jul 7, 2025
fc98152
removed obsolete variables and calls to MAPL_GetResource() (GEOS_Catc…
gmao-rreichle Jul 7, 2025
865bb9f
added missing call to diagnostic snow temp routine prior to calling s…
gmao-rreichle Jul 7, 2025
abc6f22
removed stale irrigation code (GEOS_CatchCNCLM51GridComp.F90)
gmao-rreichle Jul 7, 2025
834e78d
fixed bug in earlier commit (GEOS_CatchCNCLM51GridComp.F90)
gmao-rreichle Jul 7, 2025
a5ec54a
bug fix to Z0-formulation implementation
gmao-jkolassa Jul 7, 2025
6bde892
typo fix
gmao-jkolassa Jul 7, 2025
3e9a0b8
fixes to catchcn_internal statements in SetServices
gmao-jkolassa Jul 8, 2025
4263053
Updated Z0_FORMULATION help text (GEOS_SurfaceGridComp.rc)
gmao-rreichle Jul 8, 2025
036a8ef
remove unused declarations in SetServices
gmao-jkolassa Jul 8, 2025
b8bd86b
reorganize CN_CLM51 modules
gmao-jkolassa Jul 8, 2025
4b78c47
Revert "reorganize CN_CLM51 modules"
gmao-jkolassa Jul 8, 2025
bd089a7
added land constants as HISTORY export variables (GEOS_CatchCNCLM51Gr…
gmao-rreichle Jul 8, 2025
a80a0c8
fix land water and energy balance terms in CatchCNCLM51 (GEOS_CatchCN…
gmao-rreichle Jul 8, 2025
5e5a3fb
adapt GEOS_CatchCNCLM40GridComp.F90, GEOS_CatchCNCLM45GridComp.F90 to…
gmao-rreichle Jul 8, 2025
cafd06c
simplified if conditions for GOSWIM to be consistent with GEOS_CatchG…
gmao-rreichle Jul 9, 2025
3df3e3c
fixed FRZR in CatchCN51; informative error message for neg precip (GE…
gmao-rreichle Jul 9, 2025
4af78f9
fixed permissions for CatchCN files
gmao-rreichle Jul 9, 2025
6f78eb8
clarified [radians] units of lat/lon coords (GEOS_CatchCNCLM51GridCom…
gmao-rreichle Jul 9, 2025
5ac973f
add to bcs new file
biljanaorescanin Jul 9, 2025
b22521e
fixed variable name CATCHCN_INTERNAL (GEOS_CatchCNCLM51GridComp.F90)
gmao-rreichle Jul 9, 2025
a72e2a7
Numerical derivatives for Monin-Obukhov exchange coefficients over la…
gmao-rreichle Jul 9, 2025
dcb744d
adding CTSM5.1 source code for reference; code is not built
gmao-jkolassa Jul 9, 2025
9298771
first pass at removing CatchCNCLM45 source code
gmao-rreichle Jul 9, 2025
5143438
revert obsolete mk_restarts files to their develop versions
gmao-jkolassa Jul 10, 2025
5dad83d
change long name of TG to 'surface layer soil temperature' and change…
gmao-jkolassa Jul 10, 2025
ca6f817
change copy to list
biljanaorescanin Jul 11, 2025
22d5337
Add CatchCNCLM51 parameter file to BCS dir
gmao-rreichle Jul 11, 2025
16a1347
Merge branch 'develop' into feature/jkolassa_cnclm51
gmao-jkolassa Jul 11, 2025
6a7b9df
pass parameter file from GC to initialization routines and remove har…
gmao-jkolassa Jul 11, 2025
3e274a0
adding parameter file to pftcon initialization call
gmao-jkolassa Jul 11, 2025
22f7e7b
rename rc variable for CNCLM51 parameter file
gmao-jkolassa Jul 11, 2025
f989d9d
add first draft of solar induced fluorescence calculation adapted for…
gmao-jkolassa Jul 14, 2025
6ecea2a
typo fix
gmao-jkolassa Jul 14, 2025
11ae671
bug fixes
gmao-jkolassa Jul 14, 2025
5db92b9
include originals of CTMS files that were used in Catchment-CN5.1
gmao-jkolassa Jul 17, 2025
72e0663
change long name of CNHR and CNAR
gmao-jkolassa Jul 17, 2025
7f7e12c
added disclaimer that dbg routines in CatchCN /utils are specific to …
gmao-jkolassa Jul 18, 2025
7b27aa9
bug fix
weiyuan-jiang Jul 18, 2025
a1d1f4d
moved CLM51/CTSM_original to CLM51_orig_files/, fixed file permissions
gmao-rreichle Jul 24, 2025
f233b3a
added comments about a specific Catchment vs CatchCN difference (catc…
gmao-rreichle Jul 24, 2025
6978588
move update_model_para4cn.F90 out of ./CLM51 directory
gmao-rreichle Jul 24, 2025
dae62f3
removed vim swap files from repository; added orig version of CLM51 f…
gmao-rreichle Jul 24, 2025
4f794fa
moving update_model_para4cn.F90 back into ./CLM51/
gmao-rreichle Jul 24, 2025
f0acab1
fixed/cleaned up InternalSpecs for CNCLM40 and CNCLM51 (CatchmentCNRs…
gmao-rreichle Aug 1, 2025
5f36396
removed CNCLM45 from mk_restarts (CatchmentCNRst.F90, clm_varpar_shar…
gmao-rreichle Aug 1, 2025
1d09759
additional fixes and cleanup of InternalSpecs (CatchmentCNRst.F90):
gmao-rreichle Aug 1, 2025
0c61509
fixed bug in previous commit (CatchmentCNRst.F90)
gmao-rreichle Aug 1, 2025
cc5becc
bug fix: added missing variable declaration (CatchmentCNRst.F90)
gmao-rreichle Aug 1, 2025
817d500
added comment to TSURF InternalSpec (GEOS_CatchGridComp*.F90)
gmao-rreichle Aug 1, 2025
a4d1b29
cleaned up CatchCN dimension variable names
gmao-rreichle Aug 1, 2025
066e5ef
fix bug in previous commit (CLM??/clm_varpar.F90)
gmao-rreichle Aug 4, 2025
2b3bfc6
add first draft of Catchment-CN5.1 README file
gmao-jkolassa Aug 4, 2025
800e4f9
update Catchment-CN5.1 README file
gmao-jkolassa Aug 4, 2025
bd8fcb6
add original shr_log_mod.F90 to CLM51_orig_files
gmao-jkolassa Aug 4, 2025
34a5dea
fix TG allocation dimensions
gmao-jkolassa Aug 4, 2025
ecdd458
bug fix: 2nd dimension of TG; cleaned up temporary comments (Catchmen…
gmao-rreichle Aug 4, 2025
32ac73a
edited comments in makebcs tools to clarify parameters for CatchmentC…
gmao-rreichle Aug 4, 2025
93d3684
improved vertical alignment and indentation (CLM51/clm_varpar.F90)
gmao-rreichle Aug 4, 2025
67581a9
temporarily disable nwarning printout to avoid very large log files; …
gmao-jkolassa Aug 5, 2025
be82b53
add missing element for Catchment-CN5.1
gmao-jkolassa Aug 5, 2025
fa31469
improved vertical alignment (white-space changes only) (CatchmentCNRs…
gmao-rreichle Aug 4, 2025
34146bc
cleaned up comments (CatchmentCNRst.F90)
gmao-rreichle Aug 5, 2025
4a8fc4f
commented out unused subroutine upd_tileid() (CLM51/update_model_pa…
gmao-rreichle Aug 5, 2025
17afe1b
update PFT type and fraction assignment for Catchment-CN5.1
gmao-jkolassa Aug 5, 2025
3eea7f7
replace description of CLM45 variables wih CTSM5.1 variables; cleanup…
gmao-jkolassa Aug 5, 2025
3a72731
consistent use of "use shr_kind_mod" in CLM51/*.F90
gmao-rreichle Aug 5, 2025
3438674
fixed syntax error in previous commit (shr_kind_mod.F90)
gmao-rreichle Aug 6, 2025
a0ea6a1
Add name of CNCLM51 nml file to GEOS_SurfaceGridComp.rc (catch_wrap_s…
gmao-rreichle Aug 7, 2025
5bd2d2e
fix previous commit (GEOS_CatchCNCLM51GridComp.F90, CLM51/CNCLM_init_…
gmao-rreichle Aug 7, 2025
3ec2e11
initializing the component’s internal config flag
biljanaorescanin Aug 11, 2025
e463354
edited comment; white-space changes (GEOS_CatchCNCLM51GridComp.F90)
gmao-rreichle Aug 12, 2025
7bb81c7
fixed treatment of rc variables in SetServices() (GEOS_CatchCNCLM51Gr…
gmao-rreichle Aug 12, 2025
73da026
edited/added comments about handling of rc variables (GEOSland_GridCo…
gmao-rreichle Aug 12, 2025
c71f7ad
edited/added comments about handling of rc variables (GEOS_CatchGridC…
gmao-rreichle Aug 12, 2025
0a15ba1
revised handling of rc parameters for CatchCN (GEOS_CatchCNGridComp.F90)
gmao-rreichle Aug 12, 2025
7b5175d
Merge pull request #1142 from GEOS-ESM/borescan/catchCN_clm_5.1_fix
biljanaorescanin Aug 12, 2025
54da2c0
some clean-up of implementation of Z0_FORMULATION; disabled outdated …
gmao-rreichle Aug 28, 2025
f8c82ad
fix "include" and "use" errors in previous commit (lsm_routines.F90, …
gmao-rreichle Aug 28, 2025
a30dd03
fixed error in use of _ASSERT() (lsm_routines.F90)
gmao-rreichle Aug 28, 2025
6f95da3
Merge branch 'develop' into feature/jkolassa_cnclm51
gmao-rreichle Aug 28, 2025
1be0981
fix GNU build error (lsm_routines.F90)
gmao-rreichle Aug 28, 2025
c742c1a
commented out "nbalance warning at g" print statements (CNBalanceChec…
gmao-rreichle Sep 4, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -253,10 +253,10 @@ subroutine SetServices ( GC, RC )
call MAPL_GetResource (SCF, landicegoswim, label='N_CONST_LANDICE4SNWALB:', DEFAULT=0, __RC__ )
if (LSM_CHOICE.eq.1) then
call MAPL_GetResource (SCF, LAND_PARAMS, label='LAND_PARAMS:', DEFAULT="NRv7.2", __RC__ )
elseif (LSM_CHOICE.eq.2) then
call MAPL_GetResource (SCF, LAND_PARAMS, label='LAND_PARAMS:', DEFAULT="CN_CLM40", __RC__ )
! elseif (LSM_CHOICE.eq.3) then
! call MAPL_GetResource (SCF, LAND_PARAMS, label='LAND_PARAMS:', DEFAULT="CN_CLM45", __RC__ )
elseif (LSM_CHOICE.eq.2) then
call MAPL_GetResource (SCF, LAND_PARAMS, label='LAND_PARAMS:', DEFAULT="CN_CLM40", __RC__ )
elseif (LSM_CHOICE.eq.4) then
call MAPL_GetResource (SCF, LAND_PARAMS, label='LAND_PARAMS:', DEFAULT="CN_CLM51", __RC__ )
else
_ASSERT(.FALSE.,'unknown LSM_CHOICE')
end if
Expand Down Expand Up @@ -2963,7 +2963,7 @@ subroutine SetServices ( GC, RC )
RC=STATUS )
VERIFY_(STATUS)

IF(LSM_CHOICE > 1) THEN
IF(LSM_CHOICE >= 2) THEN

call MAPL_AddExportSpec(GC ,&
LONG_NAME = 'CN_exposed_leaf-area_index',&
Expand Down Expand Up @@ -3019,7 +3019,7 @@ subroutine SetServices ( GC, RC )
RC=STATUS )
VERIFY_(STATUS)

if (LSM_CHOICE == 3) then
if (LSM_CHOICE >= 4) then
call MAPL_AddExportSpec(GC ,&
LONG_NAME = 'CN_fine_root_carbon' ,&
UNITS = 'kg m-2' ,&
Expand Down Expand Up @@ -3057,6 +3057,24 @@ subroutine SetServices ( GC, RC )
RC=STATUS )
VERIFY_(STATUS)

call MAPL_AddExportSpec(GC ,&
LONG_NAME = 'CN_total_autotrophic_respiration' ,&
UNITS = 'kg m-2 s-1' ,&
SHORT_NAME = 'CNAR' ,&
DIMS = MAPL_DimsHorzOnly ,&
VLOCATION = MAPL_VLocationNone ,&
RC=STATUS )
VERIFY_(STATUS)

call MAPL_AddExportSpec(GC ,&
LONG_NAME = 'CN_total_heterotrophic_respiration' ,&
UNITS = 'kg m-2 s-1' ,&
SHORT_NAME = 'CNHR' ,&
DIMS = MAPL_DimsHorzOnly ,&
VLOCATION = MAPL_VLocationNone ,&
RC=STATUS )
VERIFY_(STATUS)

call MAPL_AddExportSpec(GC ,&
LONG_NAME = 'CN_net_ecosystem_exchange' ,&
UNITS = 'kg m-2 s-1' ,&
Expand Down Expand Up @@ -5663,6 +5681,8 @@ subroutine RUN2 ( GC, IMPORT, EXPORT, CLOCK, RC )
real, pointer, dimension(:,:) :: CNNPP => NULL()
real, pointer, dimension(:,:) :: CNGPP => NULL()
real, pointer, dimension(:,:) :: CNSR => NULL()
real, pointer, dimension(:,:) :: CNAR => NULL()
real, pointer, dimension(:,:) :: CNHR => NULL()
real, pointer, dimension(:,:) :: CNNEE => NULL()
real, pointer, dimension(:,:) :: CNXSMR => NULL()
real, pointer, dimension(:,:) :: CNADD => NULL()
Expand Down Expand Up @@ -5970,6 +5990,8 @@ subroutine RUN2 ( GC, IMPORT, EXPORT, CLOCK, RC )
real, pointer, dimension(:) :: CNNPPTILE => NULL()
real, pointer, dimension(:) :: CNGPPTILE => NULL()
real, pointer, dimension(:) :: CNSRTILE => NULL()
real, pointer, dimension(:) :: CNARTILE => NULL()
real, pointer, dimension(:) :: CNHRTILE => NULL()
real, pointer, dimension(:) :: CNNEETILE => NULL()
real, pointer, dimension(:) :: CNXSMRTILE => NULL()
real, pointer, dimension(:) :: CNADDTILE => NULL()
Expand Down Expand Up @@ -6853,15 +6875,17 @@ subroutine RUN2 ( GC, IMPORT, EXPORT, CLOCK, RC )
call MAPL_GetPointer(EXPORT , CDCR2 , 'CDCR2' , RC=STATUS); VERIFY_(STATUS)
call MAPL_GetPointer(EXPORT , POROS , 'POROS' , RC=STATUS); VERIFY_(STATUS)

IF(LSM_CHOICE > 1) THEN
IF(LSM_CHOICE >= 2) THEN
call MAPL_GetPointer(EXPORT , CNLAI , 'CNLAI' , RC=STATUS); VERIFY_(STATUS)
call MAPL_GetPointer(EXPORT , CNTLAI , 'CNTLAI' , RC=STATUS); VERIFY_(STATUS)
call MAPL_GetPointer(EXPORT , CNSAI , 'CNSAI' , RC=STATUS); VERIFY_(STATUS)
call MAPL_GetPointer(EXPORT , CNTOTC , 'CNTOTC' , RC=STATUS); VERIFY_(STATUS)
call MAPL_GetPointer(EXPORT , CNVEGC , 'CNVEGC' , RC=STATUS); VERIFY_(STATUS)
call MAPL_GetPointer(EXPORT , CNROOT , 'CNROOT' , RC=STATUS); VERIFY_(STATUS)
if (LSM_CHOICE == 3) then
if (LSM_CHOICE >= 4) then
call MAPL_GetPointer(EXPORT , CNFROOTC, 'CNFROOTC' ,RC=STATUS); VERIFY_(STATUS)
call MAPL_GetPointer(EXPORT , CNAR, 'CNAR' ,RC=STATUS); VERIFY_(STATUS)
call MAPL_GetPointer(EXPORT , CNHR, 'CNHR' ,RC=STATUS); VERIFY_(STATUS)
endif
call MAPL_GetPointer(EXPORT , CNNPP , 'CNNPP' , RC=STATUS); VERIFY_(STATUS)
call MAPL_GetPointer(EXPORT , CNGPP , 'CNGPP' , RC=STATUS); VERIFY_(STATUS)
Expand Down Expand Up @@ -7489,15 +7513,17 @@ subroutine RUN2 ( GC, IMPORT, EXPORT, CLOCK, RC )
call MKTILE(CDCR2 ,CDCR2TILE ,NT,RC=STATUS); VERIFY_(STATUS)
call MKTILE(POROS ,POROSTILE ,NT,RC=STATUS); VERIFY_(STATUS)

IF (LSM_CHOICE > 1) THEN
IF (LSM_CHOICE >= 2) THEN
call MKTILE(CNLAI ,CNLAITILE ,NT,RC=STATUS); VERIFY_(STATUS)
call MKTILE(CNTLAI ,CNTLAITILE ,NT,RC=STATUS); VERIFY_(STATUS)
call MKTILE(CNSAI ,CNSAITILE ,NT,RC=STATUS); VERIFY_(STATUS)
call MKTILE(CNTOTC ,CNTOTCTILE ,NT,RC=STATUS); VERIFY_(STATUS)
call MKTILE(CNVEGC ,CNVEGCTILE ,NT,RC=STATUS); VERIFY_(STATUS)
call MKTILE(CNROOT ,CNROOTTILE ,NT,RC=STATUS); VERIFY_(STATUS)
if (LSM_CHOICE == 3) then
call MKTILE(CNFROOTC,CNFROOTCTILE ,NT,RC=STATUS);VERIFY_(STATUS)
if (LSM_CHOICE >= 4) then
call MKTILE(CNFROOTC,CNFROOTCTILE ,NT,RC=STATUS); VERIFY_(STATUS)
call MKTILE(CNAR ,CNARTILE ,NT,RC=STATUS); VERIFY_(STATUS)
call MKTILE(CNHR ,CNHRTILE ,NT,RC=STATUS); VERIFY_(STATUS)
endif
call MKTILE(CNNPP ,CNNPPTILE ,NT,RC=STATUS); VERIFY_(STATUS)
call MKTILE(CNGPP ,CNGPPTILE ,NT,RC=STATUS); VERIFY_(STATUS)
Expand Down Expand Up @@ -8444,6 +8470,14 @@ subroutine RUN2 ( GC, IMPORT, EXPORT, CLOCK, RC )
call MAPL_LocStreamTransform( LOCSTREAM,CNSR ,CNSRTILE , RC=STATUS)
VERIFY_(STATUS)
endif
if(associated(CNAR)) then
call MAPL_LocStreamTransform( LOCSTREAM,CNAR ,CNARTILE , RC=STATUS)
VERIFY_(STATUS)
endif
if(associated(CNHR)) then
call MAPL_LocStreamTransform( LOCSTREAM,CNHR ,CNHRTILE , RC=STATUS)
VERIFY_(STATUS)
endif
if(associated(CNNEE)) then
call MAPL_LocStreamTransform( LOCSTREAM,CNNEE ,CNNEETILE , RC=STATUS)
VERIFY_(STATUS)
Expand Down Expand Up @@ -9081,6 +9115,8 @@ subroutine RUN2 ( GC, IMPORT, EXPORT, CLOCK, RC )
if(associated(CNNPPTILE )) deallocate(CNNPPTILE )
if(associated(CNGPPTILE )) deallocate(CNGPPTILE )
if(associated(CNSRTILE )) deallocate(CNSRTILE )
if(associated(CNARTILE )) deallocate(CNARTILE )
if(associated(CNHRTILE )) deallocate(CNHRTILE )
if(associated(CNNEETILE )) deallocate(CNNEETILE )
if(associated(CNXSMRTILE )) deallocate(CNXSMRTILE )
if(associated(CNADDTILE )) deallocate(CNADDTILE )
Expand Down Expand Up @@ -9445,7 +9481,7 @@ subroutine DOTYPE(type,RC)
VERIFY_(STATUS)


IF (LSM_CHOICE > 1) THEN
IF (LSM_CHOICE >= 2) THEN
call MAPL_GetPointer(GEX(type), dum, 'CNLAI' , ALLOC=associated(CNLAITILE ), notFoundOK=.true., RC=STATUS)
VERIFY_(STATUS)
call MAPL_GetPointer(GEX(type), dum, 'CNTLAI' , ALLOC=associated(CNTLAITILE ), notFoundOK=.true., RC=STATUS)
Expand All @@ -9458,8 +9494,13 @@ subroutine DOTYPE(type,RC)
VERIFY_(STATUS)
call MAPL_GetPointer(GEX(type), dum, 'CNROOT' , ALLOC=associated(CNROOTTILE ), notFoundOK=.true., RC=STATUS)
VERIFY_(STATUS)
if (LSM_CHOICE == 3) then
if (LSM_CHOICE >= 4) then
call MAPL_GetPointer(GEX(type), dum, 'CNFROOTC' , ALLOC=associated(CNFROOTCTILE), notFoundOK=.true., RC=STATUS)
VERIFY_(STATUS)
call MAPL_GetPointer(GEX(type), dum, 'CNAR' , ALLOC=associated(CNARTILE ), notFoundOK=.true., RC=STATUS)
VERIFY_(STATUS)
call MAPL_GetPointer(GEX(type), dum, 'CNHR' , ALLOC=associated(CNHRTILE ), notFoundOK=.true., RC=STATUS)
VERIFY_(STATUS)
endif
VERIFY_(STATUS)
call MAPL_GetPointer(GEX(type), dum, 'CNNPP' , ALLOC=associated(CNNPPTILE ), notFoundOK=.true., RC=STATUS)
Expand Down Expand Up @@ -10131,6 +10172,14 @@ subroutine DOTYPE(type,RC)
call FILLOUT_TILE(GEX(type), 'CNSR' , CNSRTILE , XFORM, RC=STATUS)
VERIFY_(STATUS)
end if
if(associated(CNARTILE)) then
call FILLOUT_TILE(GEX(type), 'CNAR' , CNARTILE , XFORM, RC=STATUS)
VERIFY_(STATUS)
end if
if(associated(CNHRTILE)) then
call FILLOUT_TILE(GEX(type), 'CNHR' , CNHRTILE , XFORM, RC=STATUS)
VERIFY_(STATUS)
end if
if(associated(CNNEETILE)) then
call FILLOUT_TILE(GEX(type), 'CNNEE' , CNNEETILE , XFORM, RC=STATUS)
VERIFY_(STATUS)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ subroutine SetServices ( GC, RC )
end do
end if

CASE (2,3)
CASE (2,4)

allocate (CATCHCN(NUM_CATCH), stat=status)
VERIFY_(STATUS)
Expand Down Expand Up @@ -972,7 +972,7 @@ subroutine SetServices ( GC, RC )
call MAPL_AddExportSpec ( GC, SHORT_NAME = 'ROC002', CHILD_ID = CATCH(1), RC=STATUS) ; VERIFY_(STATUS)
end if

CASE (2,3) ! CatchmentCN model
CASE (2,4)

call MAPL_AddExportSpec ( GC, SHORT_NAME = 'LST', CHILD_ID = CATCHCN(1), RC=STATUS )
VERIFY_(STATUS)
Expand Down Expand Up @@ -1244,9 +1244,13 @@ subroutine SetServices ( GC, RC )
VERIFY_(STATUS)
call MAPL_AddExportSpec ( GC, SHORT_NAME = 'CNROOT' , CHILD_ID = CATCHCN(1), RC=STATUS )
VERIFY_(STATUS)
if (LSM_CHOICE == 3) then
if (LSM_CHOICE >= 4) then
call MAPL_AddExportSpec ( GC, SHORT_NAME = 'CNFROOTC' , CHILD_ID = CATCHCN(1), RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddExportSpec ( GC, SHORT_NAME = 'CNAR' , CHILD_ID = CATCHCN(1), RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddExportSpec ( GC, SHORT_NAME = 'CNHR' , CHILD_ID = CATCHCN(1), RC=STATUS )
VERIFY_(STATUS)
endif
call MAPL_AddExportSpec ( GC, SHORT_NAME = 'CNNPP' , CHILD_ID = CATCHCN(1), RC=STATUS )
VERIFY_(STATUS)
Expand Down Expand Up @@ -1464,7 +1468,7 @@ subroutine SetServices ( GC, RC )
! VERIFY_(STATUS)
! ENDIF

CASE (2,3)
CASE (2,4)
call MAPL_AddConnectivity ( &
GC , &
SHORT_NAME = (/'LAI ', 'GRN ', 'ROOTL ', 'Z2CH ', &
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
esma_set_this ()

add_subdirectory (GEOScatchCNCLM40_GridComp)
add_subdirectory (GEOScatchCNCLM45_GridComp)
add_subdirectory (GEOScatchCNCLM51_GridComp)

esma_add_library (${this}
SRCS GEOS_CatchCNGridComp.F90
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
! It is a proxy of clm 4.0 and clm 4.5
! It is a proxy of CNCLM40 and CNCLM51

#include "MAPL_Generic.h"

Expand Down Expand Up @@ -48,12 +48,12 @@ subroutine SetServices ( GC, RC )

! Local Variables

type(MAPL_MetaComp), pointer :: MAPL=>null()
character(len=ESMF_MAXSTR) :: CATCHCN_VERSION
type(ESMF_GridComp), pointer :: gcs(:)
type(T_CATCHCN_STATE), pointer :: CATCHCN_INTERNAL_STATE
class(T_CATCH_STATE), pointer :: statePtr
type(CATCHCN_WRAP) :: wrap
type(MAPL_MetaComp), pointer :: MAPL=>null()
character(len=ESMF_MAXSTR) :: CATCHCN_VERSION
type(ESMF_GridComp), pointer :: gcs(:)
type(T_CATCHCN_STATE), pointer :: CATCHCN_INTERNAL_STATE
class(T_CATCH_STATE), pointer :: statePtr
type(CATCHCN_WRAP) :: wrap

character(len=ESMF_MAXSTR) :: SURFRC
type(ESMF_Config) :: SCF, CF
Expand Down Expand Up @@ -86,38 +86,48 @@ subroutine SetServices ( GC, RC )
call MAPL_GetResource ( MAPL, CATCHCN_INTERNAL_STATE%CATCH_SPINUP, Label="CATCHMENT_SPINUP:", DEFAULT=0, RC=STATUS)
VERIFY_(STATUS)

! resource variables from GEOS_SurfaceGridComp.rc
! put resource variables from rc file into SCF config object (GCM: SURFRC=GEOS_SurfaceGridComp.rc, LDAS: SURFRC=LDAS.rc)
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)

! assemble internal state from SCF config object
call surface_params_to_wrap_state(statePtr, SCF, _RC)

call ESMF_ConfigDestroy(SCF, _RC)


call MAPL_GetResource ( MAPL, LSM_CHOICE, Label="LSM_CHOICE:", DEFAULT=2, RC=STATUS)
VERIFY_(STATUS)

! Add select rc variables to [the CF config object within] MAPL so that the Children GridComps (CNCLM40 and CNCLM51) can get
! them in SetServices() from MAPL. In the Children's SetServices(), "catchcn_internal" is not yet available.
call MAPL_Get (MAPL, CF=CF, _RC)
call ESMF_ConfigSetAttribute(CF, value=CATCHCN_INTERNAL_STATE%ATM_CO2, Label='ATM_CO2:', _RC)
call ESMF_ConfigSetAttribute(CF, value=CATCHCN_INTERNAL_STATE%N_CONST_LAND4SNWALB, Label='N_CONST_LAND4SNWALB:', _RC)
call ESMF_ConfigSetAttribute(CF, value=CATCHCN_INTERNAL_STATE%RUN_IRRIG, Label='RUN_IRRIG:', _RC)
call ESMF_ConfigSetAttribute(CF, value=CATCHCN_INTERNAL_STATE%PRESCRIBE_DVG, Label='PRESCRIBE_DVG:', _RC)
call ESMF_ConfigSetAttribute(CF, value=CATCHCN_INTERNAL_STATE%SNOW_ALBEDO_INFO, Label='SNOW_ALBEDO_INFO:', _RC)
call ESMF_ConfigSetAttribute(CF, value=CATCHCN_INTERNAL_STATE%ATM_CO2, Label='ATM_CO2:', _RC)
call ESMF_ConfigSetAttribute(CF, value=CATCHCN_INTERNAL_STATE%N_CONST_LAND4SNWALB, Label='N_CONST_LAND4SNWALB:', _RC)
call ESMF_ConfigSetAttribute(CF, value=CATCHCN_INTERNAL_STATE%SNOW_ALBEDO_INFO, Label='SNOW_ALBEDO_INFO:', _RC)
if (LSM_CHOICE==2) then
call ESMF_ConfigSetAttribute(CF, value=CATCHCN_INTERNAL_STATE%RUN_IRRIG, Label='RUN_IRRIG:', _RC)
call ESMF_ConfigSetAttribute(CF, value=CATCHCN_INTERNAL_STATE%PRESCRIBE_DVG, Label='PRESCRIBE_DVG:', _RC)
elseif (LSM_CHOICE==4) then
call ESMF_ConfigSetAttribute(CF, value=CATCHCN_INTERNAL_STATE%MOSFC_EXTRA_DERIVS_OFFL_LAND, Label='MOSFC_EXTRA_DERIVS_OFFL_LAND:', _RC)
end if
call MAPL_Set (MAPL, CF=CF, _RC)

call MAPL_GetResource ( MAPL, LSM_CHOICE, Label="LSM_CHOICE:", DEFAULT=2, RC=STATUS)
VERIFY_(STATUS)
! prep CatchCN ensemble and Children
tmp = ''
if (NUM_LDAS_ENSEMBLE >1) then
!catchcn_exxxx
tmp(1:ens_id_width)=COMP_NAME(8:8+ens_id_width-1)
!catchcn_exxxx
tmp(1:ens_id_width)=COMP_NAME(8:8+ens_id_width-1)
endif
if ( LSM_CHOICE == 2 ) then

if ( LSM_CHOICE == 2 ) then
CATCHCN = MAPL_AddChild('CATCHCNCLM40'//trim(tmp), 'setservices_', parentGC=GC, sharedObj='libGEOScatchCNCLM40_GridComp.so', RC=STATUS)
VERIFY_(STATUS)
! else if ( LSM_CHOICE == 3 ) then
! CATCHCN = MAPL_AddChild('CATCHCNCLM45'//trim(tmp), 'setservices_', parentGC=GC, sharedObj='libGEOScatchCNCLM45_GridComp.so', RC=STATUS)
! VERIFY_(STATUS)
else if ( LSM_CHOICE == 4 ) then
CATCHCN = MAPL_AddChild('CATCHCNCLM51'//trim(tmp), 'setservices_', parentGC=GC, sharedObj='libGEOScatchCNCLM51_GridComp.so', RC=STATUS)
VERIFY_(STATUS)
else
_ASSERT( .false., " LSM_CHOICE should equal 2 (CLM40)")
_ASSERT( .false., " LSM_CHOICE for CatchCN should equal 2 (CLM40) or 4 (CLM51)")
endif

wrap%ptr =>CATCHCN_INTERNAL_STATE
Expand All @@ -127,13 +137,13 @@ subroutine SetServices ( GC, RC )
call MAPL_GridCompSetEntryPoint ( GC, ESMF_METHOD_INITIALIZE, Initialize, RC=STATUS )
VERIFY_(STATUS)

call MAPL_GridCompSetEntryPoint ( GC, ESMF_METHOD_RUN, RUN1, RC=STATUS )
call MAPL_GridCompSetEntryPoint ( GC, ESMF_METHOD_RUN, RUN1, RC=STATUS )
VERIFY_(STATUS)

call MAPL_GridCompSetEntryPoint ( GC, ESMF_METHOD_RUN, RUN2, RC=STATUS )
call MAPL_GridCompSetEntryPoint ( GC, ESMF_METHOD_RUN, RUN2, RC=STATUS )
VERIFY_(STATUS)

call MAPL_GridCompSetEntryPoint ( GC, ESMF_METHOD_FINALIZE, Finalize, RC=status)
call MAPL_GridCompSetEntryPoint ( GC, ESMF_METHOD_FINALIZE, Finalize, RC=status)
VERIFY_(status)

! Set the state variable specs. ( should be the combinations of clm4.0 and clm4.5
Expand Down Expand Up @@ -936,9 +946,13 @@ subroutine SetServices ( GC, RC )
VERIFY_(STATUS)
call MAPL_AddExportSpec ( GC, SHORT_NAME = 'CNROOT' , CHILD_ID = CATCHCN, RC=STATUS )
VERIFY_(STATUS)
if (LSM_CHOICE == 3) then
if (LSM_CHOICE >= 4) then ! jkolassa: needed for CNCLM51
call MAPL_AddExportSpec ( GC, SHORT_NAME = 'CNFROOTC' , CHILD_ID = CATCHCN, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddExportSpec ( GC, SHORT_NAME = 'CNAR' , CHILD_ID = CATCHCN, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddExportSpec ( GC, SHORT_NAME = 'CNHR' , CHILD_ID = CATCHCN, RC=STATUS )
VERIFY_(STATUS)
endif
call MAPL_AddExportSpec ( GC, SHORT_NAME = 'CNNPP' , CHILD_ID = CATCHCN, RC=STATUS )
VERIFY_(STATUS)
Expand Down
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,13 @@ module clm_varpar
!
! !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

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

!
! !PUBLIC TYPES:
implicit none
Expand All @@ -32,7 +35,8 @@ module clm_varpar

! clm_varpar_init seems to do something similar; less prone to error to move
! these three lines there? (slevis)
integer, parameter :: max_pft_per_col = numpft+1

integer, parameter :: max_pft_per_col = numpft + 1

! !PUBLIC MEMBER FUNCTIONS:
public clm_varpar_init ! set parameters
Expand Down
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Loading
Loading