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 15 for trunk/NEMO/OPA_SRC/daymod.F90 – NEMO

Ignore:
Timestamp:
2004-02-17T08:25:44+01:00 (20 years ago)
Author:
opalod
Message:

CT : UPDATE001 : First major NEMO update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/OPA_SRC/daymod.F90

    r3 r15  
    2020 
    2121   !! * Shared module variables 
    22    INTEGER, PUBLIC ::         & 
    23       nyear   ,               &  ! current year 
    24       nmonth  ,               &  ! current month 
    25       nday    ,               &  ! current day of the month 
    26       nday_year ,             &  ! curent day counted from jan 1st of the current year 
    27       ndastp                     ! time step date in year/month/day aammjj 
    28  
    29     REAL(wp), PUBLIC ::     & 
    30           adatrj ,          &   ! (non integer) number of elapsed days since the begining of the experiment 
    31           adatrj0               !  value of adatrj at nit000-1 (before the present run). 
    32                                 ! it is the accumulated duration of previous runs 
    33                                 ! that may have been run with different time steps. 
    34  
     22   INTEGER , PUBLIC ::   &  !: 
     23      nyear     ,   &  !: current year 
     24      nmonth    ,   &  !: current month 
     25      nday      ,   &  !: current day of the month 
     26      nday_year ,   &  !: curent day counted from jan 1st of the current year 
     27      ndastp           !: time step date in year/month/day aammjj 
     28   REAL(wp), PUBLIC ::   &  !: 
     29       adatrj   ,   &  !: number of elapsed days since the begining of the run 
     30       adatrj0         !: value of adatrj at nit000-1 (before the present run). 
     31       !               !  it is the accumulated duration of previous runs 
     32       !               !  that may have been run with different time steps. 
     33   !!---------------------------------------------------------------------- 
     34   !!  OPA 9, LODYC-IPSL (2004) 
    3535   !!---------------------------------------------------------------------- 
    3636 
    3737CONTAINS 
    3838 
    39    SUBROUTINE day ( kt ) 
     39   SUBROUTINE day( kt ) 
    4040      !!---------------------------------------------------------------------- 
    41       !!                  ***  ROUTINE day  *** 
     41      !!                      ***  ROUTINE day  *** 
    4242      !!  
    4343      !! ** Purpose :   Compute the date with a day iteration IF necessary. 
     
    5050      !!              - nday_year : current day of the year nyear 
    5151      !!              - ndastp    : =nyear*10000+nmonth*100+nday 
    52       !!              - adatrj    : date in days since the beginning 
    53       !!                            of the experiment 
     52      !!              - adatrj    : date in days since the beginning of the run 
    5453      !! 
    5554      !! History : 
     
    6968      REAL(wp) :: zadatrjn, zadatrjb     ! adatrj at timestep kt-1 and kt-2  
    7069      !!---------------------------------------------------------------------- 
    71       !!  OPA 9, LODYC-IPSL (2004) 
    72       !!---------------------------------------------------------------------- 
    7370 
    7471      ! 0.  initialization of adatrj0 and nday, nmonth,nyear, nday_year. 
     
    7673      !----------------------------------------------------------------- 
    7774 
    78       IF ( kt == nit000 ) THEN 
     75      IF( kt == nit000 ) THEN 
    7976 
    80          IF ( .NOT.ln_rstart )   adatrj0 = 0.e0      ! adatrj0 initialized in rst_read when restart  
     77         IF( .NOT.ln_rstart )   adatrj0 = 0.e0      ! adatrj0 initialized in rst_read when restart  
    8178 
    8279         adatrj  = adatrj0 
     
    115112      iday1 = INT( zadatrjn ) 
    116113 
    117       if ( iday1 - iday0 >= 1 .AND. ( kt /= nit000 .OR. nrstdt == 2 ) ) THEN 
     114      IF( iday1 - iday0 >= 1 .AND. ( kt /= nit000 .OR. nrstdt == 2 ) ) THEN 
    118115 
    119116         ! increase calendar 
Note: See TracChangeset for help on using the changeset viewer.