Skip to content

Commit

Permalink
fixed hard-coded pft index in grperc found in photosynthesis
Browse files Browse the repository at this point in the history
  • Loading branch information
rgknox committed Oct 13, 2016
1 parent 4ecda62 commit d0150fe
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion components/clm/src/ED/biogeophys/EDPhotosynthesisMod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -960,7 +960,7 @@ subroutine Photosynthesis_ED (nsites, sites,bc_in,bc_out,dtime)
if ( DEBUG ) write(iulog,*) 'EDPhoto 912 ', currentCohort%resp_tstep
if ( DEBUG ) write(iulog,*) 'EDPhoto 913 ', currentCohort%resp_m

currentCohort%resp_g = ED_val_grperc(1) * (max(0._r8,currentCohort%gpp_tstep - currentCohort%resp_m))
currentCohort%resp_g = ED_val_grperc(ft) * (max(0._r8,currentCohort%gpp_tstep - currentCohort%resp_m))
currentCohort%resp_tstep = currentCohort%resp_m + currentCohort%resp_g ! kgC/indiv/ts
currentCohort%npp_tstep = currentCohort%gpp_tstep - currentCohort%resp_tstep ! kgC/indiv/ts

Expand Down
1 change: 0 additions & 1 deletion components/clm/src/utils/clmfates_interfaceMod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1063,7 +1063,6 @@ subroutine wrap_photosynthesis(this, nc, bounds, fn, filterp, &
use perf_mod , only : t_startf, t_stopf
use PatchType , only : patch
use quadraticMod , only : quadratic
use EDParamsMod , only : ED_val_grperc
use EDSharedParamsMod , only : EDParamsShareInst
use EDTypesMod , only : numpft_ed, dinc_ed
use EDtypesMod , only : ed_patch_type, ed_cohort_type, ed_site_type, numpft_ed, numPatchesPerCol
Expand Down

0 comments on commit d0150fe

Please sign in to comment.