Skip to content

Commit

Permalink
Merge branch 'ctsm5.1.dev130.NYRS_CROP_ACTIVE' into refactor-crop-gdd…
Browse files Browse the repository at this point in the history
…-runmeans
  • Loading branch information
samsrabin committed Jul 14, 2023
2 parents 574f3b2 + e866ddf commit 509fbcc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/biogeochem/CropType.F90
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,11 @@ subroutine InitHistory(this, bounds)
avgflag='I', long_name='actual crop harvest dates; should only be output annually', &
ptr_patch=this%hdates_thisyr, default='inactive')

this%nyrs_crop_active_patch(begp:endp,:) = spval
call hist_addfld1d (fname='NYRS_CROP_ACTIVE', units='year', &
avgflag='I', long_name='number of years crop active', &
ptr_patch=this%nyrs_crop_active_patch, default='inactive')

end subroutine InitHistory

subroutine InitCold(this, bounds)
Expand Down

0 comments on commit 509fbcc

Please sign in to comment.