@@ -109,26 +109,26 @@ module CNCLM_initMod
109
109
contains
110
110
111
111
!- -----------------------------------------------------
112
- subroutine CN_init (nch ,ityp ,fveg ,cncol ,cnpft ,lats ,lons ,dtcn ,paramfile ,water_inst ,bgc_vegetation_inst ,cn5_cold_start )
112
+ subroutine CN_init (NLFilename , nch ,ityp ,fveg ,cncol ,cnpft ,lats ,lons ,dtcn ,paramfile ,water_inst ,bgc_vegetation_inst ,cn5_cold_start )
113
113
114
114
! ARGUMENTS
115
115
implicit none
116
116
! INPUT/OUTPUT
117
- integer , intent (in ) :: nch ! number of tiles
118
- integer , dimension (nch,num_veg,num_zon), intent (in ) :: ityp ! PFT index
119
- real , dimension (nch,num_veg,num_zon), intent (in ) :: fveg ! PFT fraction
120
- real , dimension (nch,num_zon,var_col), intent (in ) :: cncol ! column-level CN restart variables
121
- real , dimension (nch,num_zon,num_veg,var_pft), intent (in ) :: cnpft ! patch/pft-level CN restart variables
122
- real , dimension (nch), intent (in ) :: lats ! Catchment tile latitudes [rad]
123
- real , dimension (nch), intent (in ) :: lons ! Catchment tile longitudes [rad]
124
- real , intent (in ) :: dtcn ! Catchment-CN step size
125
- character (len= ESMF_MAXSTR), intent (in ) :: paramfile
126
- logical , optional , intent (in ) :: cn5_cold_start ! cold start for the CLM variables that are new in Catchment-CN5.0
127
- type (water_type), intent (out ) :: water_inst
128
- type (cn_vegetation_type), intent (out ) :: bgc_vegetation_inst
117
+ character (256 ), intent (in ) :: NLFilename ! len=256 for consistency with SHR_KIND_CL of CLM51/shr_kind_mod.F90
118
+ integer , intent (in ) :: nch ! number of tiles
119
+ integer , dimension (nch,num_veg,num_zon), intent (in ) :: ityp ! PFT index
120
+ real , dimension (nch,num_veg,num_zon), intent (in ) :: fveg ! PFT fraction
121
+ real , dimension (nch,num_zon,var_col), intent (in ) :: cncol ! column-level CN restart variables
122
+ real , dimension (nch,num_zon,num_veg,var_pft), intent (in ) :: cnpft ! patch/pft-level CN restart variables
123
+ real , dimension (nch), intent (in ) :: lats ! Catchment tile latitudes [rad]
124
+ real , dimension (nch), intent (in ) :: lons ! Catchment tile longitudes [rad]
125
+ real , intent (in ) :: dtcn ! Catchment-CN step size
126
+ character (len= ESMF_MAXSTR), intent (in ) :: paramfile
127
+ logical , optional , intent (in ) :: cn5_cold_start ! cold start for the CLM variables that are new in Catchment-CN5.0
128
+ type (water_type), intent (out ) :: water_inst
129
+ type (cn_vegetation_type), intent (out ) :: bgc_vegetation_inst
129
130
! LOCAL
130
131
131
- character (256 ) :: NLFilename ! length of 256 for consistency with SHR_KIND_CL of CLM51/shr_kind_mod.F90
132
132
type (Netcdf4_fileformatter) :: ncid
133
133
integer :: rc, status, ndt
134
134
@@ -170,9 +170,6 @@ subroutine CN_init(nch,ityp,fveg,cncol,cnpft,lats,lons,dtcn,paramfile,water_inst
170
170
call allocFilters (bounds, nch, ityp, fveg)
171
171
172
172
! read parameters and configurations from namelist file
173
-
174
- call MAPL_GetResource( MAPL, NLFilename, Label= " CN_CLM51_NML_FILE:" , DEFAULT= ' ./CN_CLM51.nml' , RC= STATUS)
175
- VERIFY_(STATUS)
176
173
177
174
call CNPhenologyReadNML ( NLFilename )
178
175
call dynSubgridControl_init ( )
0 commit comments