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 194 – NEMO

Changeset 194


Ignore:
Timestamp:
2004-12-22T16:43:16+01:00 (19 years ago)
Author:
opalod
Message:

CT : BUGFIX135 : correction of the zxday calculation using nday_year the number of days since the beginning of the run

Location:
trunk/NEMO/OPA_SRC/SBC
Files:
2 edited

Legend:

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

    r106 r194  
    8989         zsst(:,:) = gsst(:,:) / REAL( nfbulk ) * tmask(:,:,1) 
    9090         zsss(:,:) = gsss(:,:) / REAL( nfbulk ) 
    91          CALL flx_blk( kt, zsst )     
     91         CALL flx_blk( zsst )     
    9292      
    9393         gsst(:,:) = 0.     
  • trunk/NEMO/OPA_SRC/SBC/flxblk.F90

    r152 r194  
    7777CONTAINS 
    7878 
    79    SUBROUTINE flx_blk( kt, psst ) 
     79   SUBROUTINE flx_blk( psst ) 
    8080      !!--------------------------------------------------------------------------- 
    8181      !!                     ***  ROUTINE flx_blk  *** 
     
    104104      !!---------------------------------------------------------------------- 
    105105      !! * Arguments 
    106       INTEGER , INTENT( in  )  ::   kt        ! time step 
    107106      REAL(wp), INTENT( in ), DIMENSION(jpi,jpj) ::   & 
    108107         &                          psst      ! Sea Surface Temperature  
     
    139138      REAL(wp)  ::            &  
    140139         zxday             ,  &  ! day of year 
    141          ztsec             ,  &  ! time in seconds 
    142140         zdist             ,  &  ! distance between the sun and the earth during the year 
    143141         zdaycor           ,  &  ! corr. factor to take into account the variation of  
     
    316314      !  compution of the day of the year at which the fluxes have to be calculate  
    317315      !--The date corresponds to the middle of the time step. 
    318       ztsec = ( 2 * INT ( ( kt - 1 ) / nfbulk ) + 1 ) * rdtbs2 
    319       zxday = MOD( ztsec , raass ) / rday + 1.0   
     316      zxday=nday_year + rdtbs2/rday 
    320317 
    321318      iday   = INT( zxday ) 
Note: See TracChangeset for help on using the changeset viewer.