- Timestamp:
- 2021-07-29T17:24:54+02:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ORCHIDEE_2_2/ORCHIDEE/src_driver/forcing_tools.f90
r7262 r7263 3445 3445 ! 3446 3446 ! 3447 nbland_loc = SUM(contfrac_loc) 3447 nbland_loc = 0 3448 DO ik=1, SIZE(contfrac_loc) 3449 IF (contfrac_loc(ik) > 0.0) THEN 3450 nbland_loc = nbland_loc + 1.0 3451 ENDIF 3452 ENDDO 3448 3453 ! 3449 3454 ! … … 3860 3865 CALL ipslerr (3,'forcing_givegrid'," This routine can only be called on the root processor.", & 3861 3866 & "The information requested is only available on root processor.", " ") 3867 ENDIF 3868 ! 3869 IF (nbpoint_loc .NE. nbland_loc) THEN 3870 WRITE(numout, *) "forcing_givegrid:: nbpoint_loc=", nbpoint_loc 3871 WRITE(numout, *) "forcing_givegrid:: nbland_loc=", nbland_loc 3872 CALL ipslerr(3,'forcing_givegrid','nbpoint_loc and nbland_loc do match', & 3873 'The calculation of land points is not correct','') 3862 3874 ENDIF 3863 3875 ! … … 4052 4064 ! First extral the information from the date string 4053 4065 ! 4054 READ(ymd(1:INDEX(ymd,'-')-1),'(I )') year04066 READ(ymd(1:INDEX(ymd,'-')-1),'(I4)') year0 4055 4067 ymd=TRIM(ymd(INDEX(ymd,'-')+1:LEN_TRIM(ymd))) 4056 READ(ymd(1:INDEX(ymd,'-')-1),'(I )') month04068 READ(ymd(1:INDEX(ymd,'-')-1),'(I2)') month0 4057 4069 ymd=TRIM(ymd(INDEX(ymd,'-')+1:LEN_TRIM(ymd))) 4058 READ(ymd,'(I )') day04070 READ(ymd,'(I2)') day0 4059 4071 ! 4060 4072 ! Now extract from the time string 4061 4073 ! 4062 READ(hms(1:INDEX(hms,':')-1),'(I )') hours04074 READ(hms(1:INDEX(hms,':')-1),'(I2)') hours0 4063 4075 hms=TRIM(hms(INDEX(hms,':')+1:LEN_TRIM(hms))) 4064 READ(hms(1:INDEX(hms,':')-1),'(I )') minutes04076 READ(hms(1:INDEX(hms,':')-1),'(I2)') minutes0 4065 4077 hms=TRIM(hms(INDEX(hms,':')+1:LEN_TRIM(hms))) 4066 READ(hms,'(I )') seci4078 READ(hms,'(I2)') seci 4067 4079 ! 4068 4080 sec0 = hours0*3600. + minutes0*60. + seci
Note: See TracChangeset
for help on using the changeset viewer.