Ignore:
Timestamp:
Dec 13, 2016, 5:13:39 PM (8 years ago)
Author:
Laurent Fairhead
Message:

Merged trunk changes r2719:2727 into testing branch

Location:
LMDZ5/branches/testing
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/branches/testing

  • LMDZ5/branches/testing/libf/phylmd/rrtm/read_rsun_rrtm.F90

    r2542 r2729  
    5656       ENDIF
    5757
    58        IF (size(time).NE.year_len) THEN
     58!--test if time is different from year_len but allow a mismatch of 1 day
     59       IF (size(time).NE.year_len.AND.size(time).NE.year_len+1) THEN
    5960         PRINT *,'read_rsun_rrtm time <> year_len = ', size(time), year_len
    6061         CALL abort_physic('read_rsun_rrtm','time dim should be the number of days in year',1)
     62       ENDIF
     63!--warning only if forcing file has 366 days but year_len has only 365
     64       IF (size(time).EQ.year_len+1) THEN
     65         PRINT *,'Warning read_rsun_rrtm uses a leap year rsun for a noleap year'
    6166       ENDIF
    6267
     
    9196
    9297!--copy
    93       RSUN(:)=SSI_FRAC(:,day_cur)
     98      RSUN(1:NSW)=SSI_FRAC(:,day_cur)
    9499      solaire=TSI(day_cur)
    95100
Note: See TracChangeset for help on using the changeset viewer.