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/sbcana.F90 – NEMO

Ignore:
Timestamp:
2009-11-16T16:15:24+01:00 (15 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/sbcana.F90

    r1715 r1732  
    146146      REAL(wp) ::   zcdrag = 1.5e-3       ! drag coefficient 
    147147      REAL(wp) ::   ztx, zty, zmod, zcoef ! temporary variables 
     148      REAL(wp) ::   zyydd                 ! number of days in one year 
    148149      !!--------------------------------------------------------------------- 
    149           
     150      zyydd = REAL(nyear_len(1),wp) 
     151 
    150152      ! ---------------------------- ! 
    151153      !  heat and freshwater fluxes  ! 
     
    160162      ! current day (in hours) since january the 1st of the current year 
    161163      ztime = REAL( kt ) * rdt / (rmmss * rhhmm)   &       !  total incrementation (in hours) 
    162          &      - (nyear  - 1) * rjjhh * raajj             !  minus years since beginning of experiment (in hours) 
     164         &      - (nyear  - 1) * rjjhh * zyydd             !  minus years since beginning of experiment (in hours) 
    163165 
    164166      ztimemax1 = ((5.*30.)+21.)* 24.                      ! 21th june     at 24h in hours 
    165       ztimemin1 = ztimemax1 + rjjhh * raajj / 2            ! 21th december        in hours 
     167      ztimemin1 = ztimemax1 + rjjhh * zyydd / 2            ! 21th december        in hours 
    166168      ztimemax2 = ((6.*30.)+21.)* 24.                      ! 21th july     at 24h in hours 
    167       ztimemin2 = ztimemax2 - rjjhh * raajj / 2            ! 21th january         in hours 
    168       !                                                    ! NB: rjjhh * raajj / 4 = one seasonal cycle in hours 
     169      ztimemin2 = ztimemax2 - rjjhh * zyydd / 2            ! 21th january         in hours 
     170      !                                                    ! NB: rjjhh * zyydd / 4 = one seasonal cycle in hours 
    169171 
    170172      ! amplitudes 
     
    243245      ! day (in hours) since january the 1st 
    244246      ztime = FLOAT( kt ) * rdt / (rmmss * rhhmm)  &  ! incrementation in hour 
    245          &     - (nyear - 1) * rjjhh * raajj          !  - nber of hours the precedent years 
     247         &     - (nyear - 1) * rjjhh * zyydd          !  - nber of hours the precedent years 
    246248      ztimemax = ((5.*30.)+21.)* 24.               ! 21th june     in hours 
    247       ztimemin = ztimemax + rjjhh * raajj / 2      ! 21th december in hours 
    248       !                                            ! NB: rjjhh * raajj / 4 = 1 seasonal cycle in hours 
     249      ztimemin = ztimemax + rjjhh * zyydd / 2      ! 21th december in hours 
     250      !                                            ! NB: rjjhh * zyydd / 4 = 1 seasonal cycle in hours 
    249251 
    250252      ! mean intensity at 0.105 ; srqt(2) because projected with 45deg angle 
     
    287289         WRITE(numout,*)'           nmonth     = ', nmonth 
    288290         WRITE(numout,*)'           nday       = ', nday 
    289          WRITE(numout,*)'           nday_year  = ',nday_year 
     291         WRITE(numout,*)'           nday_year  = ', nday_year 
    290292         WRITE(numout,*)'           ztime      = ', ztime 
     293         WRITE(numout,*)'           ztimemax   = ', ztimemax 
     294         WRITE(numout,*)'           ztimemin   = ', ztimemin 
    291295         WRITE(numout,*)'           ztimemax1  = ', ztimemax1 
    292296         WRITE(numout,*)'           ztimemin1  = ', ztimemin1 
     
    297301         WRITE(numout,*)'           zday0      = ', zday0 
    298302         WRITE(numout,*)'           zday_year0 = ', zday_year0 
    299          WRITE(numout,*)'           raajj      = ', raajj 
     303         WRITE(numout,*)'           zyydd      = ', zyydd 
    300304         WRITE(numout,*)'           zemp_S     = ', zemp_S 
    301305         WRITE(numout,*)'           zemp_N     = ', zemp_N 
     
    306310         WRITE(numout,*)'           ztrp       = ', ztrp 
    307311         WRITE(numout,*)'           zconv      = ', zconv 
    308  
    309          WRITE(numout,*)'           ndastp     = ',ndastp 
    310          WRITE(numout,*)'           adatrj     = ',adatrj 
    311          WRITE(numout,*)'           ztime      = ',ztime 
    312  
    313          WRITE(numout,*)'           ztimemax   = ',ztimemax 
    314          WRITE(numout,*)'           ztimemin   = ',ztimemin 
    315          WRITE(numout,*)'           zyear0     = ', zyear0 
    316          WRITE(numout,*)'           zmonth0    = ', zmonth0 
    317          WRITE(numout,*)'           zday0      = ', zday0 
    318          WRITE(numout,*)'           zday_year0 = ',zday_year0 
    319          WRITE(numout,*)'           raajj  = ', raajj 
     312         WRITE(numout,*)'           ndastp     = ', ndastp 
     313         WRITE(numout,*)'           adatrj     = ', adatrj 
     314 
    320315      ENDIF 
    321316      ! 
Note: See TracChangeset for help on using the changeset viewer.