ESCOMP / CTSM

Community Terrestrial Systems Model (includes the Community Land Model of CESM)
http://www.cesm.ucar.edu/models/cesm2.0/land/
Other
296 stars 301 forks source link

Remove need to check readvar for checkDates for crop #149

Closed ekluzek closed 5 years ago

ekluzek commented 6 years ago

Erik Kluzek < erik > - 2016-11-09 13:14:01 -0700 Bugzilla Id: 2372 Bugzilla CC: rfisher,

The following shouldn't depend on readvar for unrelated variables...

Index: CropType.F90
===================================================================
--- CropType.F90    (revision 81586)
+++ CropType.F90    (working copy)
@@ -429,8 +429,10 @@
             dim1name='pft', long_name='crop phenology phase', &
             units='0-not planted, 1-planted, 2-leaf emerge, 3-grain fill, 4-harvest', &
             interpinic_flag='interp', readvar=readvar, data=this%cphase_patch)
-       if (flag=='read' .and. readvar)  then
-          call this%checkDates( )
+       if (flag=='read' )then
+          call this%checkDates( )  ! Check that restart date is same calendar date (even if year is different)
+                                   ! This is so that it properly goes through
+                                   ! the crop phases
        end if
     end if
ekluzek commented 5 years ago

This is already in place.