@@ -169,17 +169,17 @@ subroutine readParams ( ncid )
169
169
if ( .not. readv ) call endrun( msg= trim (errCode)// trim (tString)// errMsg(sourcefile, __LINE__))
170
170
params_inst% ndays_off= tempr
171
171
172
- allocate (params_inst% nfix_tmin(mxpft))
172
+ allocate (params_inst% nfix_tmin(0 : mxpft))
173
173
tString= ' nfix_tmin'
174
174
call ncd_io(trim (tString), params_inst% nfix_tmin(:), ' read' , ncid, readvar= readv)
175
175
if ( .not. readv ) call endrun(msg= trim (errCode)// trim (tString)// errMsg(sourcefile, __LINE__))
176
176
177
- allocate (params_inst% nfix_topt(mxpft))
177
+ allocate (params_inst% nfix_topt(0 : mxpft))
178
178
tString= ' nfix_topt'
179
179
call ncd_io(trim (tString), params_inst% nfix_topt(:), ' read' , ncid, readvar= readv)
180
180
if ( .not. readv ) call endrun(msg= trim (errCode)// trim (tString)// errMsg(sourcefile, __LINE__))
181
181
182
- allocate (params_inst% nfix_tmax(mxpft))
182
+ allocate (params_inst% nfix_tmax(0 : mxpft))
183
183
tString= ' nfix_tmax'
184
184
call ncd_io(trim (tString), params_inst% nfix_tmax(:), ' read' , ncid, readvar= readv)
185
185
if ( .not. readv ) call endrun(msg= trim (errCode)// trim (tString)// errMsg(sourcefile, __LINE__))
@@ -535,7 +535,7 @@ subroutine CNFUN(bounds,num_soilc, filter_soilc,num_soilp&
535
535
real (r8 ) :: total_N_resistance ! C to of N for whole soil -leaf
536
536
! pathway
537
537
real (r8 ) :: free_RT_frac= 0.0_r8 ! fraction of N retranslocation which is automatic/free.
538
- ! SHould be made into a PFT parameter.
538
+ ! Should be made into a PFT parameter.
539
539
540
540
real (r8 ) :: paid_for_n_retrans
541
541
real (r8 ) :: free_n_retrans
@@ -1136,13 +1136,13 @@ subroutine CNFUN(bounds,num_soilc, filter_soilc,num_soilp&
1136
1136
1137
1137
select case (nfix_method)
1138
1138
case (' Houlton' )
1139
- costNit(j,icostFix) = fun_cost_fix(fixer,&
1140
- a_fix(ivt(p)),b_fix(ivt(p)),c_fix(ivt(p)),&
1141
- big_cost,crootfr(p,j),s_fix(ivt(p)),tc_soisno(c,j))
1139
+ costNit(j,icostFix) = fun_cost_fix(fixer, &
1140
+ a_fix(ivt(p)), b_fix(ivt(p)), c_fix(ivt(p)), &
1141
+ big_cost, crootfr(p,j), s_fix(ivt(p)), tc_soisno(c,j))
1142
1142
case (' Bytnerowicz' ) ! no acclimation calculation
1143
- costNit(j,icostFix) = fun_cost_fix_Bytnerowicz_noAcc(fixer, &
1144
- params_inst% nfix_tmin(ivt(p)), params_inst% nfix_topt(ivt(p)), params_inst% nfix_tmax(ivt(p)), &
1145
- big_cost,crootfr(p,j),s_fix(ivt(p)),tc_soisno(c,j))
1143
+ costNit(j,icostFix) = fun_cost_fix_Bytnerowicz_noAcc(fixer, &
1144
+ params_inst% nfix_tmin(ivt(p)), params_inst% nfix_topt(ivt(p)), params_inst% nfix_tmax(ivt(p)), &
1145
+ big_cost,crootfr(p,j), s_fix(ivt(p)), tc_soisno(c,j))
1146
1146
case default
1147
1147
errCode = ' ERROR: unknown nfix_method value: ' // nfix_method
1148
1148
call endrun( msg= trim (errCode) // errMsg(sourcefile, __LINE__))
0 commit comments