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 9939 for NEMO/branches/2018/dev_r9838_ENHANCE04_RK3/src/SAS – NEMO

Ignore:
Timestamp:
2018-07-13T09:28:50+02:00 (6 years ago)
Author:
gm
Message:

#1911 (ENHANCE-04): RK3 branche phased with MLF@9937 branche

Location:
NEMO/branches/2018/dev_r9838_ENHANCE04_RK3
Files:
2 edited
1 copied

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2018/dev_r9838_ENHANCE04_RK3/src/SAS/daymod.F90

    r9598 r9939  
    2020   !!                    ------------------------------- 
    2121   !!   sbcmod assume that the time step is dividing the number of second of  
    22    !!   in a day, i.e. ===> MOD( rday, rdt ) == 0  
     22   !!   in a day, i.e. ===> MOD( rday, rn_Dt ) == 0  
    2323   !!   except when user defined forcing is used (see sbcmod.F90) 
    2424   !!---------------------------------------------------------------------- 
     
    7272      ! 
    7373      ! max number of seconds between each restart 
    74       IF( REAL( nitend - nit000 + 1 ) * rdt > REAL( HUGE( nsec1jan000 ) ) ) THEN 
     74      IF( REAL( nitend - nit000 + 1 ) * rn_Dt > REAL( HUGE( nsec1jan000 ) ) ) THEN 
    7575         CALL ctl_stop( 'The number of seconds between each restart exceeds the integer 4 max value: 2^31-1. ',   & 
    7676            &           'You must do a restart at higher frequency (or remove this stop and recompile the code in I8)' ) 
    7777      ENDIF 
    78       nsecd   = NINT( rday       ) 
    79       nsecd05 = NINT( 0.5 * rday ) 
    80       ndt     = NINT(       rdt ) 
    81       ndt05   = NINT( 0.5 * rdt ) 
     78      nsecd   = NINT( rday        ) 
     79      nsecd05 = NINT( 0.5 * rday  ) 
     80      ndt     = NINT(       rn_Dt ) 
     81      ndt05   = NINT( 0.5 * rn_Dt ) 
    8282 
    8383      IF( .NOT. l_offline )   CALL day_rst( nit000, 'READ' ) 
     
    237237      nsec_week  = nsec_week  + ndt 
    238238      nsec_day   = nsec_day   + ndt 
    239       adatrj  = adatrj  + rdt / rday 
    240       fjulday = fjulday + rdt / rday 
     239      adatrj  = adatrj  + rn_Dt / rday 
     240      fjulday = fjulday + rn_Dt / rday 
    241241      IF( ABS(fjulday - REAL(NINT(fjulday),wp)) < zprec )   fjulday = REAL(NINT(fjulday),wp)   ! avoid truncation error 
    242242      IF( ABS(adatrj  - REAL(NINT(adatrj ),wp)) < zprec )   adatrj  = REAL(NINT(adatrj ),wp)   ! avoid truncation error 
     
    307307      !!       In both those options, the  exact duration of the experiment 
    308308      !!       since the beginning (cumulated duration of all previous restart runs) 
    309       !!       is not stored in the restart and is assumed to be (nit000-1)*rdt. 
     309      !!       is not stored in the restart and is assumed to be (nit000-1)*rn_Dt. 
    310310      !!       This is valid is the time step has remained constant. 
    311311      !! 
     
    376376               nminute = ( nn_time0 - nhour * 100 ) 
    377377               IF( nhour*3600+nminute*60-ndt05 .lt. 0 )  ndastp=ndastp-1      ! Start hour is specified in the namelist (default 0) 
    378                adatrj = ( REAL( nit000-1, wp ) * rdt ) / rday 
     378               adatrj = ( REAL( nit000-1, wp ) * rn_Dt ) / rday 
    379379               ! note this is wrong if time step has changed during run 
    380380            ENDIF 
     
    385385       nminute = ( nn_time0 - nhour * 100 ) 
    386386            IF( nhour*3600+nminute*60-ndt05 .lt. 0 )  ndastp=ndastp-1      ! Start hour is specified in the namelist (default 0) 
    387             adatrj = ( REAL( nit000-1, wp ) * rdt ) / rday 
     387            adatrj = ( REAL( nit000-1, wp ) * rn_Dt ) / rday 
    388388         ENDIF 
    389389         IF( ABS(adatrj  - REAL(NINT(adatrj),wp)) < 0.1 / rday )   adatrj = REAL(NINT(adatrj),wp)   ! avoid truncation error 
  • NEMO/branches/2018/dev_r9838_ENHANCE04_RK3/src/SAS/diawri.F90

    r9652 r9939  
    158158      ENDIF 
    159159#if defined key_diainstant 
    160       zsto = nwrite * rdt 
     160      zsto = nwrite * rn_Dt 
    161161      clop = "inst("//TRIM(clop)//")" 
    162162#else 
    163       zsto=rdt 
     163      zsto = rn_Dt 
    164164      clop = "ave("//TRIM(clop)//")" 
    165165#endif 
    166       zout = nwrite * rdt 
    167       zmax = ( nitend - nit000 + 1 ) * rdt 
     166      zout = nwrite * rn_Dt 
     167      zmax = ( nitend - nit000 + 1 ) * rn_Dt 
    168168 
    169169      ! Define indices of the horizontal output zoom and vertical limit storage 
     
    185185 
    186186         ! Compute julian date from starting date of the run 
    187          CALL ymds2ju( nyear, nmonth, nday, rdt, zjulian ) 
     187         CALL ymds2ju( nyear, nmonth, nday, rn_Dt, zjulian ) 
    188188         zjulian = zjulian - adatrj   !   set calendar origin to the beginning of the experiment 
    189189         IF(lwp)WRITE(numout,*) 
     
    207207         CALL histbeg( clhstnam, jpi, glamt, jpj, gphit,           &  ! Horizontal grid: glamt and gphit 
    208208            &          iimi, iima-iimi+1, ijmi, ijma-ijmi+1,       & 
    209             &          nit000-1, zjulian, rdt, nh_T, nid_T, domain_id=nidom, snc4chunks=snc4set ) 
     209            &          nit000-1, zjulian, rn_Dt, nh_T, nid_T, domain_id=nidom, snc4chunks=snc4set ) 
    210210         CALL histvert( nid_T, "deptht", "Vertical T levels",      &  ! Vertical grid: gdept 
    211211            &           "m", ipk, gdept_1d, nz_T, "down" ) 
     
    219219         CALL histbeg( clhstnam, jpi, glamu, jpj, gphiu,           &  ! Horizontal grid: glamu and gphiu 
    220220            &          iimi, iima-iimi+1, ijmi, ijma-ijmi+1,       & 
    221             &          nit000-1, zjulian, rdt, nh_U, nid_U, domain_id=nidom, snc4chunks=snc4set ) 
     221            &          nit000-1, zjulian, rn_Dt, nh_U, nid_U, domain_id=nidom, snc4chunks=snc4set ) 
    222222         CALL histvert( nid_U, "depthu", "Vertical U levels",      &  ! Vertical grid: gdept 
    223223            &           "m", ipk, gdept_1d, nz_U, "down" ) 
     
    231231         CALL histbeg( clhstnam, jpi, glamv, jpj, gphiv,           &  ! Horizontal grid: glamv and gphiv 
    232232            &          iimi, iima-iimi+1, ijmi, ijma-ijmi+1,       & 
    233             &          nit000-1, zjulian, rdt, nh_V, nid_V, domain_id=nidom, snc4chunks=snc4set ) 
     233            &          nit000-1, zjulian, rn_Dt, nh_V, nid_V, domain_id=nidom, snc4chunks=snc4set ) 
    234234         CALL histvert( nid_V, "depthv", "Vertical V levels",      &  ! Vertical grid : gdept 
    235235            &          "m", ipk, gdept_1d, nz_V, "down" ) 
     
    360360      clname = cdfile_name 
    361361      IF( .NOT. Agrif_Root() ) clname = TRIM(Agrif_CFixed())//'_'//TRIM(clname) 
    362       zsto = rdt 
     362      zsto = rn_Dt 
    363363      clop = "inst(x)"           ! no use of the mask value (require less cpu time) 
    364       zout = rdt 
    365       zmax = ( nitend - nit000 + 1 ) * rdt 
     364      zout = rn_Dt 
     365      zmax = ( nitend - nit000 + 1 ) * rn_Dt 
    366366 
    367367      IF(lwp) WRITE(numout,*) 
     
    375375 
    376376      ! Compute julian date from starting date of the run 
    377       CALL ymds2ju( nyear, nmonth, nday, rdt, zjulian )         ! time axis  
     377      CALL ymds2ju( nyear, nmonth, nday, rn_Dt, zjulian )         ! time axis  
    378378      zjulian = zjulian - adatrj   !   set calendar origin to the beginning of the experiment 
    379379      CALL histbeg( clname, jpi, glamt, jpj, gphit,   & 
    380           1, jpi, 1, jpj, nit000-1, zjulian, rdt, nh_i, id_i, domain_id=nidom, snc4chunks=snc4set ) ! Horizontal grid : glamt and gphit 
     380          1, jpi, 1, jpj, nit000-1, zjulian, rn_Dt, nh_i, id_i, domain_id=nidom, snc4chunks=snc4set ) ! Horizontal grid : glamt and gphit 
    381381      CALL histvert( id_i, "deptht", "Vertical T levels",   &    ! Vertical grid : gdept 
    382382          "m", jpk, gdept_1d, nz_i, "down") 
Note: See TracChangeset for help on using the changeset viewer.