Skip to content

Commit

Permalink
Merge pull request #2 from glemieux/SP_next_api-deconflict-d525994
Browse files Browse the repository at this point in the history
Deconflict CTSM PR 985 with fates_next_api (commit d525994)
  • Loading branch information
rosiealice authored Jun 4, 2020
2 parents 6e2a996 + b5989cf commit 57421c9
Show file tree
Hide file tree
Showing 9 changed files with 211 additions and 197 deletions.
2 changes: 1 addition & 1 deletion Externals_CLM.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
local_path = src/fates
protocol = git
repo_url = https://github.com/NGEET/fates
tag = sci.1.35.0_api.10.0.0
tag = sci.1.35.4_api.11.0.0
required = True

[PTCLM]
Expand Down
4 changes: 2 additions & 2 deletions cime_config/testdefs/testmods_dirs/clm/Fates/user_nl_clm
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ hist_nhtfrq = -24
hist_empty_htapes = .true.
use_fates_spitfire= .true.
hist_fincl1 = 'NPP','GPP','BTRAN','H2OSOI','TLAI','LITTER_IN_ELEM','LITTER_OUT_ELEM',
'FIRE_AREA','SCORCH_HEIGHT','FIRE_INTENSITY','FIRE_TFC_ROS','fire_fuel_mef',
'fire_fuel_bulkd','fire_fuel_sav','FIRE_NESTEROV_INDEX','PFTbiomass',
'FIRE_AREA','SCORCH_HEIGHT','FIRE_INTENSITY','FIRE_TFC_ROS','FIRE_FUEL_MEF',
'FIRE_FUEL_BULKD','FIRE_FUEL_SAV','FIRE_NESTEROV_INDEX','PFTbiomass',
'PFTleafbiomass','FIRE_ROS','WIND','AREA_TREES','AREA_PLANT',
'TOTSOMC','TOTLITC','T_SCALAR','NEP','HR','NPLANT_SCAG','NPLANT_SCPF',
'BA_SCLS','NPP_BY_AGE','CWD_AG_CWDSC','PARSUN_Z_CNLF','PARSUN_Z_CNLFPFT','PARSHA_Z_CAN',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ hist_nhtfrq = -24
hist_empty_htapes = .true.
use_fates_spitfire= .true.
hist_fincl1 = 'NPP','GPP','BTRAN','H2OSOI','TLAI','LITTER_IN','LITTER_OUT',
'FIRE_AREA','SCORCH_HEIGHT','FIRE_INTENSITY','FIRE_TFC_ROS','fire_fuel_mef',
'fire_fuel_bulkd','fire_fuel_sav','FIRE_NESTEROV_INDEX','PFTbiomass',
'FIRE_AREA','SCORCH_HEIGHT','FIRE_INTENSITY','FIRE_TFC_ROS','FIRE_FUEL_MEF',
'FIRE_FUEL_BULKD','FIRE_FUEL_SAV','FIRE_NESTEROV_INDEX','PFTbiomass',
'PFTleafbiomass','FIRE_ROS','WIND','AREA_TREES','AREA_PLANT',
'TOTSOMC','TOTLITC','T_SCALAR','NEP','HR','NPLANT_SCAG','NPLANT_SCPF',
'BA_SCLS','NPP_BY_AGE','CWD_AG_CWDSC','PARSUN_Z_CNLF','PARSUN_Z_CNLFPFT','PARSHA_Z_CAN'
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
hist_fincl1 = 'NPP','GPP','BTRAN','H2OSOI','TLAI','LITTER_IN','LITTER_OUT',
'FIRE_AREA','SCORCH_HEIGHT','FIRE_INTENSITY','FIRE_TFC_ROS','fire_fuel_mef',
'fire_fuel_bulkd','fire_fuel_sav','FIRE_NESTEROV_INDEX','PFTbiomass',
'FIRE_AREA','SCORCH_HEIGHT','FIRE_INTENSITY','FIRE_TFC_ROS','FIRE_FUEL_MEF',
'FIRE_FUEL_BULKD','FIRE_FUEL_SAV','FIRE_NESTEROV_INDEX','PFTbiomass',
'PFTleafbiomass','FIRE_ROS','WIND','AREA_TREES','AREA_PLANT',
'TOTSOMC','TOTLITC','T_SCALAR','NEP','HR'
7 changes: 4 additions & 3 deletions src/main/clm_initializeMod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module clm_initializeMod
use PatchType , only : patch ! instance
use reweightMod , only : reweight_wrapup
use filterMod , only : allocFilters, filter
use FatesInterfaceMod, only : set_fates_global_elements
use CLMFatesInterfaceMod, only : CLMFatesGlobals

use clm_instMod
use SoilMoistureStreamMod, only : PrescribedSoilMoistureInit
Expand Down Expand Up @@ -186,9 +186,10 @@ subroutine initialize1( )
!
! (Note: fates_maxELementsPerSite is the critical variable used by CLM
! to allocate space)
! This also sets up various global constants in FATES
! ------------------------------------------------------------------------
call set_fates_global_elements(use_fates)

call CLMFatesGlobals()

! ------------------------------------------------------------------------
! Determine decomposition of subgrid scale landunits, columns, patches
Expand Down
2 changes: 1 addition & 1 deletion src/main/decompInitMod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module decompInitMod
use glcBehaviorMod , only : glc_behavior_type
use decompMod
use mct_mod , only : mct_gsMap_init, mct_gsMap_ngseg, mct_gsMap_nlseg, mct_gsmap_gsize
use FatesInterfaceMod, only : fates_maxElementsPerSite
use FatesInterfaceTypesMod, only : fates_maxElementsPerSite
!
! !PUBLIC TYPES:
implicit none
Expand Down
68 changes: 34 additions & 34 deletions src/main/histFileMod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ module histFileMod
use PatchType , only : patch
use EDTypesMod , only : nclmax
use EDTypesMod , only : nlevleaf
use FatesInterfaceMod , only : nlevsclass, nlevage, nlevcoage
use FatesInterfaceMod , only : nlevheight
use FatesInterfaceTypesMod , only : nlevsclass, nlevage, nlevcoage
use FatesInterfaceTypesMod , only : nlevheight
use EDTypesMod , only : nfsc
use FatesLitterMod , only : ncwd
use EDTypesMod , only : num_elements_fates => num_elements
use FatesInterfaceMod , only : numpft_fates => numpft
use FatesInterfaceTypesMod , only : numpft_fates => numpft
use ncdio_pio

!
Expand Down Expand Up @@ -2504,37 +2504,37 @@ subroutine htape_timeconst(t, mode)
use domainMod , only : ldomain, lon1d, lat1d
use clm_time_manager, only : get_nstep, get_curr_date, get_curr_time
use clm_time_manager, only : get_ref_date, get_calendar, NO_LEAP_C, GREGORIAN_C
use FatesInterfaceMod, only : fates_hdim_levsclass
use FatesInterfaceMod, only : fates_hdim_pfmap_levscpf
use FatesInterfaceMod, only : fates_hdim_scmap_levscpf
use FatesInterfaceMod, only : fates_hdim_levcoage
use FatesInterfaceMod, only : fates_hdim_pfmap_levcapf
use FatesInterfaceMod, only : fates_hdim_camap_levcapf
use FatesInterfaceMod, only : fates_hdim_levage
use FatesInterfaceMod, only : fates_hdim_levheight
use FatesInterfaceMod, only : fates_hdim_levpft
use FatesInterfaceMod, only : fates_hdim_scmap_levscag
use FatesInterfaceMod, only : fates_hdim_agmap_levscag
use FatesInterfaceMod, only : fates_hdim_scmap_levscagpft
use FatesInterfaceMod, only : fates_hdim_agmap_levscagpft
use FatesInterfaceMod, only : fates_hdim_pftmap_levscagpft
use FatesInterfaceMod, only : fates_hdim_agmap_levagepft
use FatesInterfaceMod, only : fates_hdim_pftmap_levagepft
use FatesInterfaceMod, only : fates_hdim_levfuel
use FatesInterfaceMod, only : fates_hdim_levcwdsc
use FatesInterfaceMod, only : fates_hdim_levcan
use FatesInterfaceMod, only : fates_hdim_canmap_levcnlf
use FatesInterfaceMod, only : fates_hdim_lfmap_levcnlf
use FatesInterfaceMod, only : fates_hdim_canmap_levcnlfpf
use FatesInterfaceMod, only : fates_hdim_lfmap_levcnlfpf
use FatesInterfaceMod, only : fates_hdim_pftmap_levcnlfpf
use FatesInterfaceMod, only : fates_hdim_levelem
use FatesInterfaceMod, only : fates_hdim_elmap_levelpft
use FatesInterfaceMod, only : fates_hdim_pftmap_levelpft
use FatesInterfaceMod, only : fates_hdim_elmap_levelcwd
use FatesInterfaceMod, only : fates_hdim_cwdmap_levelcwd
use FatesInterfaceMod, only : fates_hdim_elmap_levelage
use FatesInterfaceMod, only : fates_hdim_agemap_levelage
use FatesInterfaceTypesMod, only : fates_hdim_levsclass
use FatesInterfaceTypesMod, only : fates_hdim_pfmap_levscpf
use FatesInterfaceTypesMod, only : fates_hdim_scmap_levscpf
use FatesInterfaceTypesMod, only : fates_hdim_levcoage
use FatesInterfaceTypesMod, only : fates_hdim_pfmap_levcapf
use FatesInterfaceTypesMod, only : fates_hdim_camap_levcapf
use FatesInterfaceTypesMod, only : fates_hdim_levage
use FatesInterfaceTypesMod, only : fates_hdim_levheight
use FatesInterfaceTypesMod, only : fates_hdim_levpft
use FatesInterfaceTypesMod, only : fates_hdim_scmap_levscag
use FatesInterfaceTypesMod, only : fates_hdim_agmap_levscag
use FatesInterfaceTypesMod, only : fates_hdim_scmap_levscagpft
use FatesInterfaceTypesMod, only : fates_hdim_agmap_levscagpft
use FatesInterfaceTypesMod, only : fates_hdim_pftmap_levscagpft
use FatesInterfaceTypesMod, only : fates_hdim_agmap_levagepft
use FatesInterfaceTypesMod, only : fates_hdim_pftmap_levagepft
use FatesInterfaceTypesMod, only : fates_hdim_levfuel
use FatesInterfaceTypesMod, only : fates_hdim_levcwdsc
use FatesInterfaceTypesMod, only : fates_hdim_levcan
use FatesInterfaceTypesMod, only : fates_hdim_canmap_levcnlf
use FatesInterfaceTypesMod, only : fates_hdim_lfmap_levcnlf
use FatesInterfaceTypesMod, only : fates_hdim_canmap_levcnlfpf
use FatesInterfaceTypesMod, only : fates_hdim_lfmap_levcnlfpf
use FatesInterfaceTypesMod, only : fates_hdim_pftmap_levcnlfpf
use FatesInterfaceTypesMod, only : fates_hdim_levelem
use FatesInterfaceTypesMod, only : fates_hdim_elmap_levelpft
use FatesInterfaceTypesMod, only : fates_hdim_pftmap_levelpft
use FatesInterfaceTypesMod, only : fates_hdim_elmap_levelcwd
use FatesInterfaceTypesMod, only : fates_hdim_cwdmap_levelcwd
use FatesInterfaceTypesMod, only : fates_hdim_elmap_levelage
use FatesInterfaceTypesMod, only : fates_hdim_agemap_levelage


!
Expand Down
2 changes: 1 addition & 1 deletion src/main/subgridMod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module subgridMod
use clm_instur , only : wt_lunit, wt_nat_patch, urban_valid, wt_cft
use landunit_varcon, only : istcrop, istdlak, istwet, isturb_tbd, isturb_hd, isturb_md
use glcBehaviorMod , only : glc_behavior_type
use FatesInterfaceMod, only : fates_maxElementsPerSite
use FatesInterfaceTypesMod, only : fates_maxElementsPerSite

implicit none
private
Expand Down
Loading

0 comments on commit 57421c9

Please sign in to comment.