New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 1732 for trunk/NEMO/OPA_SRC/SBC/sbcblk_clio.F90 – NEMO

Ignore:
Timestamp:
2009-11-16T16:15:24+01:00 (14 years ago)
Author:
smasson
Message:

supress useless variables in phycst, see ticket:602

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/OPA_SRC/SBC/sbcblk_clio.F90

    r1730 r1732  
    6363#endif 
    6464 
    65    REAL(wp) ::   yearday     !: number of days per year    
    66    REAL(wp) ::   rdtbs2      !: number of days per year    
     65   REAL(wp) ::   rdtbs2      !:    
    6766    
    6867   REAL(wp), DIMENSION(19)  ::  budyko            ! BUDYKO's coefficient (cloudiness effect on LW radiation) 
     
    725724            END DO 
    726725         END DO 
    727          IF    ( nleapy == 1 ) THEN   ;   yearday = 366.e0 
    728          ELSEIF( nleapy == 0 ) THEN   ;   yearday = 365.e0 
    729          ELSEIF( nleapy == 30) THEN   ;   yearday = 360.e0 
    730          ENDIF 
    731726         lbulk_init = .FALSE. 
    732727      ENDIF 
     
    764759      !  correction factor added for computation of shortwave flux to take into account the variation of 
    765760      !  the distance between the sun and the earth during the year (Oberhuber 1988) 
    766       zdist    = zxday * 2. * rpi / yearday 
     761      zdist    = zxday * 2. * rpi / REAL(nyear_len(1), wp) 
    767762      zdaycor  = 1.0 + 0.0013 * SIN( zdist ) + 0.0342 * COS( zdist ) 
    768763 
     
    779774            zlsset (ji,jj) = - zlsrise(ji,jj) 
    780775            !  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 ) 
    782777         END DO 
    783778      END DO 
     
    894889      !  correction factor added for computation of shortwave flux to take into account the variation of 
    895890      !  the distance between the sun and the earth during the year (Oberhuber 1988) 
    896       zdist    = zxday * 2. * rpi / yearday 
     891      zdist    = zxday * 2. * rpi / REAL(nyear_len(1), wp) 
    897892      zdaycor  = 1.0 + 0.0013 * SIN( zdist ) + 0.0342 * COS( zdist ) 
    898893 
     
    909904            zlsset (ji,jj) = - zlsrise(ji,jj) 
    910905            !  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 ) 
    912907         END DO 
    913908      END DO 
     
    991986      !!--------------------------------------------------------------------- 
    992987             
    993       IF    ( ky == 1 )  THEN   ;   zday = REAL( kday ) - 0.5 
    994       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 ) 
    996991      ENDIF 
    997992       
    998       zp = rpi * ( 2.0 * zday - 367.0 ) / yearday 
     993      zp = rpi * ( 2.0 * zday - 367.0 ) / REAL(nyear_len(1), wp) 
    999994       
    1000995      pdecl  = a0                                                                      & 
Note: See TracChangeset for help on using the changeset viewer.