Skip to content

Commit

Permalink
Set stream_dtlimit to 10^30 for crop calendar streams.
Browse files Browse the repository at this point in the history
Previously was 1.5, but threw error at 2000-01-01 (i.e., the first day of the first year of the sdates file).
  • Loading branch information
samsrabin committed Jan 29, 2023
1 parent 08e2fe6 commit 5bd0506
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/cpl/share_esmf/cropcalStreamMod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ subroutine cropcal_init(bounds)
use_cropcal_streams = use_cropcal_rx_sdates .or. use_cropcal_rx_cultivar_gdds

! Initialize the cdeps data type sdat_cropcal_sdate
! NOTE: stream_dtlimit 1.5 didn't work for some reason
if (use_cropcal_rx_sdates) then
call shr_strdata_init_from_inline(sdat_cropcal_sdate, &
my_task = iam, &
Expand All @@ -170,7 +171,7 @@ subroutine cropcal_init(bounds)
stream_yearAlign = model_year_align_cropcal, &
stream_offset = cropcal_offset, &
stream_taxmode = 'extend', &
stream_dtlimit = 1.5_r8, &
stream_dtlimit = 1.0e30_r8, &
stream_tintalgo = cropcal_tintalgo, &
stream_name = 'sowing date data', &
rc = rc)
Expand All @@ -180,6 +181,7 @@ subroutine cropcal_init(bounds)
end if

! Initialize the cdeps data type sdat_cropcal_cultivar_gdds
! NOTE: stream_dtlimit 1.5 didn't work for some reason
if (use_cropcal_rx_cultivar_gdds) then
call shr_strdata_init_from_inline(sdat_cropcal_cultivar_gdds, &
my_task = iam, &
Expand All @@ -198,7 +200,7 @@ subroutine cropcal_init(bounds)
stream_yearAlign = model_year_align_cropcal, &
stream_offset = cropcal_offset, &
stream_taxmode = 'extend', &
stream_dtlimit = 1.5_r8, &
stream_dtlimit = 1.0e30_r8, &
stream_tintalgo = cropcal_tintalgo, &
stream_name = 'cultivar gdd data', &
rc = rc)
Expand Down

0 comments on commit 5bd0506

Please sign in to comment.