Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
604 commits
Select commit Hold shift + click to select a range
ffc46f2
commenting out read function for logical data types (not currently used)
gmao-jkolassa Feb 24, 2023
dab4e40
add missing file declaration
gmao-jkolassa Feb 27, 2023
1634801
add missing function import
gmao-jkolassa Feb 27, 2023
dc2b841
adding missing function declaration
gmao-jkolassa Feb 27, 2023
b8df82b
add missing function import
gmao-jkolassa Feb 27, 2023
15302b6
initialize CN time step earlier
gmao-jkolassa Feb 27, 2023
58e7f3a
add missing function import
gmao-jkolassa Feb 27, 2023
765a97a
change order of initialization and parameter read
gmao-jkolassa Feb 27, 2023
98a98f7
split parameter read according to type
gmao-jkolassa Feb 27, 2023
43c1ec1
change fire method initialization call
gmao-jkolassa Feb 27, 2023
0ed19c3
add target declaration
gmao-jkolassa Feb 27, 2023
a09302d
make canopystate initialization internal function
gmao-jkolassa Feb 27, 2023
b0a9c4d
modify initialization calls
gmao-jkolassa Feb 28, 2023
222bd16
bug fix
gmao-jkolassa Feb 28, 2023
f141d7b
bug fix
gmao-jkolassa Feb 28, 2023
eb98c93
bug fix
gmao-jkolassa Feb 28, 2023
4cee8a8
bug fix
gmao-jkolassa Feb 28, 2023
4dd5188
remove duplicate statement
gmao-jkolassa Feb 28, 2023
866963e
update to latest develop
gmao-jkolassa Feb 28, 2023
84f2128
bug fix
gmao-jkolassa Mar 1, 2023
90422a4
bug fix
gmao-jkolassa Mar 1, 2023
2ff9b61
revise initialization
gmao-jkolassa Mar 1, 2023
aa0d801
bug fix
gmao-jkolassa Mar 1, 2023
5478bc3
add missing variables
gmao-jkolassa Mar 1, 2023
4e7454e
correct ncid%open statement
gmao-jkolassa Mar 1, 2023
90867e0
change function name to match naming convention
gmao-jkolassa Mar 1, 2023
834788b
rearrange type statements
gmao-jkolassa Mar 1, 2023
76d942e
remove duplicate statements
gmao-jkolassa Mar 1, 2023
bdd13f1
pointer bug fix test
gmao-jkolassa Mar 6, 2023
e817ec5
changing variable type
gmao-jkolassa Mar 6, 2023
0efddce
pointer bug fix test
gmao-jkolassa Mar 6, 2023
c85bdb9
pointer bug fix
gmao-jkolassa Mar 7, 2023
4d3f07b
change initialization
gmao-jkolassa Mar 7, 2023
d00f9e1
bug fix
gmao-jkolassa Mar 8, 2023
a3bd89f
bug fix
gmao-jkolassa Mar 8, 2023
06537b6
correct type import
gmao-jkolassa Mar 8, 2023
0591eac
changing imports
gmao-jkolassa Mar 8, 2023
50ff221
fixing imports
gmao-jkolassa Mar 8, 2023
83464c3
correct filter import and type declaration
gmao-jkolassa Mar 8, 2023
02926c1
typo fix
gmao-jkolassa Mar 8, 2023
4810c5a
correct filter reference
gmao-jkolassa Mar 8, 2023
856e511
bug fix
gmao-jkolassa Mar 8, 2023
4ba2719
change forcing assignment for cnfire_type
gmao-jkolassa Mar 9, 2023
3161b09
fix pointers
gmao-jkolassa Mar 9, 2023
c74bab3
code changes to pass Catchment information to fire code
gmao-jkolassa Mar 9, 2023
c73b74f
remove redundant declaration
gmao-jkolassa Mar 9, 2023
8410aaa
add new cn2clm_type to pass Catchment information to CLM nested fire …
gmao-jkolassa Mar 9, 2023
a1cd89b
remove obsolete type declarations
gmao-jkolassa Mar 9, 2023
39a1efe
use consistent r8 definition
gmao-jkolassa Mar 9, 2023
1dc1642
declare fireemis_inst
gmao-jkolassa Mar 9, 2023
a1fc663
declare isotope types
gmao-jkolassa Mar 9, 2023
c0ea79a
fix dimensions of PSN pointers
gmao-jkolassa Mar 10, 2023
68a9ac3
corrent saturated zone moisture computation
gmao-jkolassa Mar 13, 2023
e8a77bd
correct TA_MIN initialization and add photosynthesis use statement
gmao-jkolassa Mar 13, 2023
2df27e0
add function to compute leaf specific humidity
gmao-jkolassa Mar 13, 2023
f585f1e
change QSat input types
gmao-jkolassa Mar 14, 2023
b332ffc
prevent floating point exception at wetness 0
gmao-jkolassa Mar 14, 2023
5e65a32
initialize LAI an SAI variables as 0
gmao-jkolassa Mar 14, 2023
e3a0979
prevent floating point exception when LAI is 0
gmao-jkolassa Mar 14, 2023
15fbab1
add TwoStream function and fix use statements
gmao-jkolassa Mar 14, 2023
4ab38f2
correct use statements and add missing constants
gmao-jkolassa Mar 14, 2023
112aaf3
bug fix
gmao-jkolassa Mar 14, 2023
493e6ed
typo fix
gmao-jkolassa Mar 15, 2023
23a9b26
remove obsolete function imports
gmao-jkolassa Mar 15, 2023
2c8b26a
adjust data type to match CLM
gmao-jkolassa Mar 15, 2023
5f8ebbb
initialize TLAI/TSAI to 0 when NaN to avoid floating point exception
gmao-jkolassa Mar 15, 2023
8798adf
bug fixes
gmao-jkolassa Mar 15, 2023
fec60e6
rework handling of water types
gmao-jkolassa Mar 15, 2023
02fbc6b
adding allocation
gmao-jkolassa Mar 15, 2023
6920f3f
add waterdiagnostic_type
gmao-jkolassa Mar 15, 2023
23c9d99
typo fix
gmao-jkolassa Mar 15, 2023
38cb0ba
add waterdiagnostic_type dependencies
gmao-jkolassa Mar 16, 2023
ae843ea
make initialization procedure public
gmao-jkolassa Mar 16, 2023
6919c58
update water type initialization
gmao-jkolassa Mar 16, 2023
175f109
typo fix
gmao-jkolassa Mar 16, 2023
7b2d78f
add type declaration
gmao-jkolassa Mar 16, 2023
02b750f
add type declaration
gmao-jkolassa Mar 16, 2023
d4c3fd2
add type declaration
gmao-jkolassa Mar 16, 2023
57e2503
use pointers
gmao-jkolassa Mar 16, 2023
5dfa6e4
revise water type initialization
gmao-jkolassa Mar 17, 2023
a237147
save water_type
gmao-jkolassa Mar 17, 2023
c3dcf25
passing water types directly instead of importing them
gmao-jkolassa Mar 20, 2023
a01cd65
avoid floating point exceptions whed rc is 0
gmao-jkolassa Mar 20, 2023
ab09677
typo fix
gmao-jkolassa Mar 20, 2023
c19c034
only compute PAR when vegetation is present
gmao-jkolassa Mar 21, 2023
d054976
typo fix
gmao-jkolassa Mar 21, 2023
65dd9fa
rework bgc_vegetation_inst initialization
gmao-jkolassa Mar 22, 2023
00ae6cf
correct pointer assignment
gmao-jkolassa Mar 22, 2023
6f792bb
pass bgc_vegetation_type directly as input to catchcn_calc_rc
gmao-jkolassa Mar 22, 2023
0ee8eda
add missing use statement
gmao-jkolassa Mar 22, 2023
49825d3
typo fix
gmao-jkolassa Mar 22, 2023
3fc7f81
enable scaling functions
gmao-jkolassa Mar 23, 2023
4524f7d
fix AnnualFluxDribbler call
gmao-jkolassa Mar 23, 2023
1d0336c
add missing use statements
gmao-jkolassa Mar 23, 2023
543b9ff
fix order of arguments in function call
gmao-jkolassa Mar 23, 2023
e4a4995
make arguments not keyword
gmao-jkolassa Mar 23, 2023
0ce6755
update to latest develop (includes manual changes in clm_varpar and c…
gmao-jkolassa Mar 24, 2023
9f418ae
account for changes in number of PFTs and variables
gmao-jkolassa Mar 24, 2023
c2d6bd8
fix iclass allocation
gmao-jkolassa Mar 24, 2023
439bccc
typo fix
gmao-jkolassa Mar 24, 2023
49d472a
typo fix
gmao-jkolassa Mar 27, 2023
31988af
manual updates to match latest develop
gmao-jkolassa Mar 27, 2023
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
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
  •  
  •  
  •  
Empty file modified .circleci/config.yml
100644 → 100755
Empty file.
Empty file modified .github/CODEOWNERS
100644 → 100755
Empty file.
Empty file modified .github/PULL_REQUEST_TEMPLATE/auto_pr_to_mapl3.md
100644 → 100755
Empty file.
Empty file modified .github/workflows/enforce-labels.yml
100644 → 100755
Empty file.
Empty file modified .github/workflows/push-to-develop.yml
100644 → 100755
Empty file.
Empty file modified .gitignore
100644 → 100755
Empty file.
Empty file modified CMakeLists.txt
100644 → 100755
Empty file.
Empty file modified CODE_OF_CONDUCT.md
100644 → 100755
Empty file.
Empty file modified CONTRIBUTING.md
100644 → 100755
Empty file.
Empty file modified COPYRIGHT
100644 → 100755
Empty file.
Empty file modified GCM_Preamble.tex
100644 → 100755
Empty file.
Empty file modified GEOS_GcmGridComp.F90
100644 → 100755
Empty file.
Empty file modified GEOSagcm_GridComp/CMakeLists.txt
100644 → 100755
Empty file.
Empty file modified GEOSagcm_GridComp/GEOS_AgcmGridComp.F90
100644 → 100755
Empty file.
Empty file modified GEOSagcm_GridComp/GEOSphysics_GridComp/.gitignore
100644 → 100755
Empty file.
Empty file modified GEOSagcm_GridComp/GEOSphysics_GridComp/CMakeLists.txt
100644 → 100755
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.
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.
67 changes: 58 additions & 9 deletions GEOSagcm_GridComp/GEOSphysics_GridComp/GEOSsurface_GridComp/GEOS_SurfaceGridComp.F90
100644 → 100755
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 @@ -3001,7 +3001,7 @@ subroutine SetServices ( GC, RC )
RC=STATUS )
VERIFY_(STATUS)

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

call MAPL_AddExportSpec(GC ,&
LONG_NAME = 'CN_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_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 @@ -5643,6 +5661,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 @@ -5948,6 +5968,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 @@ -6832,8 +6854,10 @@ subroutine RUN2 ( GC, IMPORT, EXPORT, CLOCK, RC )
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 >= 3) 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 @@ -7466,8 +7490,10 @@ subroutine RUN2 ( GC, IMPORT, EXPORT, CLOCK, RC )
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 >= 3) 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 @@ -8404,6 +8430,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 @@ -9039,6 +9073,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 @@ -9416,8 +9452,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 >= 3) 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 @@ -10085,6 +10126,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
Empty file.
Empty file.
Empty file.
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,3,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,3,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 >= 3) 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,3,4)
call MAPL_AddConnectivity ( &
GC , &
SHORT_NAME = (/'LAI ', 'GRN ', 'ROOTL ', 'Z2CH ', &
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,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
Expand Up @@ -113,11 +113,11 @@ subroutine SetServices ( GC, RC )
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 should equal 2 (CLM40) or 4 (CLM51)")
endif

wrap%ptr =>CATCHCN_INTERNAL_STATE
Expand Down Expand Up @@ -936,9 +936,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 >= 3) 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.
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.
Loading
Loading