From d5bda14c536d61108f0f4ae4b36164ed877aac53 Mon Sep 17 00:00:00 2001 From: Sam Rabin Date: Wed, 9 Nov 2022 12:21:32 -0700 Subject: [PATCH] Don't use gddmin as minimum GDD requirement when not using prescribed GDDs. --- src/biogeochem/CNPhenologyMod.F90 | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/biogeochem/CNPhenologyMod.F90 b/src/biogeochem/CNPhenologyMod.F90 index 83d53f6405..0c5a36410e 100644 --- a/src/biogeochem/CNPhenologyMod.F90 +++ b/src/biogeochem/CNPhenologyMod.F90 @@ -2610,15 +2610,7 @@ subroutine PlantCrop(p, leafcn_in, jday, kyr, do_plant_normal, & gddmaturity(p) = min(gdd020(p), hybgdd(ivt(p))) end if - ! gddmaturity == 0.0 will cause problems elsewhere, where it appears in denominator - ! Just manually set a minimum of 1.0 - if (gddmaturity(p) < gddmin(ivt(p))) then - write(iulog,*) 'Some patch with ivt ',ivt(p),' has calculated gddmaturity ',gddmaturity(p),& - '; using gddmin(ivt(p)) instead (',gddmin(ivt(p)),')' - endif - gddmaturity(p) = max(gddmaturity(p), gddmin(ivt(p))) endif -! write (iulog,'(a,i4,a,f0.0)') 'gddmaturity (ivt ',ivt(p),'): ',gddmaturity(p) end associate