@@ -109,26 +109,26 @@ module CNCLM_initMod
109109 contains
110110
111111!- -----------------------------------------------------
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 )
113113
114114 ! ARGUMENTS
115115 implicit none
116116 ! 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
129130 ! LOCAL
130131
131- character (256 ) :: NLFilename ! length of 256 for consistency with SHR_KIND_CL of CLM51/shr_kind_mod.F90
132132 type (Netcdf4_fileformatter) :: ncid
133133 integer :: rc, status, ndt
134134
@@ -170,9 +170,6 @@ subroutine CN_init(nch,ityp,fveg,cncol,cnpft,lats,lons,dtcn,paramfile,water_inst
170170 call allocFilters (bounds, nch, ityp, fveg)
171171
172172 ! 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)
176173
177174 call CNPhenologyReadNML ( NLFilename )
178175 call dynSubgridControl_init ( )
0 commit comments