Changeset 1732 for trunk/NEMO/OPA_SRC/SBC/sbcblk_clio.F90
- Timestamp:
- 2009-11-16T16:15:24+01:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NEMO/OPA_SRC/SBC/sbcblk_clio.F90
r1730 r1732 63 63 #endif 64 64 65 REAL(wp) :: yearday !: number of days per year 66 REAL(wp) :: rdtbs2 !: number of days per year 65 REAL(wp) :: rdtbs2 !: 67 66 68 67 REAL(wp), DIMENSION(19) :: budyko ! BUDYKO's coefficient (cloudiness effect on LW radiation) … … 725 724 END DO 726 725 END DO 727 IF ( nleapy == 1 ) THEN ; yearday = 366.e0728 ELSEIF( nleapy == 0 ) THEN ; yearday = 365.e0729 ELSEIF( nleapy == 30) THEN ; yearday = 360.e0730 ENDIF731 726 lbulk_init = .FALSE. 732 727 ENDIF … … 764 759 ! correction factor added for computation of shortwave flux to take into account the variation of 765 760 ! the distance between the sun and the earth during the year (Oberhuber 1988) 766 zdist = zxday * 2. * rpi / yearday761 zdist = zxday * 2. * rpi / REAL(nyear_len(1), wp) 767 762 zdaycor = 1.0 + 0.0013 * SIN( zdist ) + 0.0342 * COS( zdist ) 768 763 … … 779 774 zlsset (ji,jj) = - zlsrise(ji,jj) 780 775 ! dividing the solar day into jp24 segments of length zdlha 781 zdlha (ji,jj) = ( zlsrise(ji,jj) - zlsset(ji,jj) ) / REAL( jp24 )776 zdlha (ji,jj) = ( zlsrise(ji,jj) - zlsset(ji,jj) ) / REAL( jp24, wp ) 782 777 END DO 783 778 END DO … … 894 889 ! correction factor added for computation of shortwave flux to take into account the variation of 895 890 ! the distance between the sun and the earth during the year (Oberhuber 1988) 896 zdist = zxday * 2. * rpi / yearday891 zdist = zxday * 2. * rpi / REAL(nyear_len(1), wp) 897 892 zdaycor = 1.0 + 0.0013 * SIN( zdist ) + 0.0342 * COS( zdist ) 898 893 … … 909 904 zlsset (ji,jj) = - zlsrise(ji,jj) 910 905 ! dividing the solar day into jp24 segments of length zdlha 911 zdlha (ji,jj) = ( zlsrise(ji,jj) - zlsset(ji,jj) ) / REAL( jp24 )906 zdlha (ji,jj) = ( zlsrise(ji,jj) - zlsset(ji,jj) ) / REAL( jp24, wp ) 912 907 END DO 913 908 END DO … … 991 986 !!--------------------------------------------------------------------- 992 987 993 IF ( ky == 1 ) THEN ; zday = REAL( kday ) - 0.5994 ELSEIF( ky == 3 ) THEN ; zday = REAL( kday ) - 1.995 ELSE ; zday = REAL( kday )988 IF ( ky == 1 ) THEN ; zday = REAL( kday, wp ) - 0.5 989 ELSEIF( ky == 3 ) THEN ; zday = REAL( kday, wp ) - 1. 990 ELSE ; zday = REAL( kday, wp ) 996 991 ENDIF 997 992 998 zp = rpi * ( 2.0 * zday - 367.0 ) / yearday993 zp = rpi * ( 2.0 * zday - 367.0 ) / REAL(nyear_len(1), wp) 999 994 1000 995 pdecl = a0 &
Note: See TracChangeset
for help on using the changeset viewer.