Changeset 15 for trunk/NEMO/OPA_SRC/daymod.F90
- Timestamp:
- 2004-02-17T08:25:44+01:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NEMO/OPA_SRC/daymod.F90
r3 r15 20 20 21 21 !! * Shared module variables 22 INTEGER , PUBLIC :: &23 nyear , & !current year24 nmonth , & !current month25 nday , & !current day of the month26 nday_year , & !curent day counted from jan 1st of the current year27 ndastp !time step date in year/month/day aammjj28 29 REAL(wp), PUBLIC :: &30 adatrj , & ! (non integer) number of elapsed days since the begining of the experiment31 adatrj0 ! value of adatrj at nit000-1 (before the present run).32 ! it is the accumulated duration of previous runs33 ! 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) 35 35 !!---------------------------------------------------------------------- 36 36 37 37 CONTAINS 38 38 39 SUBROUTINE day 39 SUBROUTINE day( kt ) 40 40 !!---------------------------------------------------------------------- 41 !! *** ROUTINE day ***41 !! *** ROUTINE day *** 42 42 !! 43 43 !! ** Purpose : Compute the date with a day iteration IF necessary. … … 50 50 !! - nday_year : current day of the year nyear 51 51 !! - 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 54 53 !! 55 54 !! History : … … 69 68 REAL(wp) :: zadatrjn, zadatrjb ! adatrj at timestep kt-1 and kt-2 70 69 !!---------------------------------------------------------------------- 71 !! OPA 9, LODYC-IPSL (2004)72 !!----------------------------------------------------------------------73 70 74 71 ! 0. initialization of adatrj0 and nday, nmonth,nyear, nday_year. … … 76 73 !----------------------------------------------------------------- 77 74 78 IF (kt == nit000 ) THEN75 IF( kt == nit000 ) THEN 79 76 80 IF 77 IF( .NOT.ln_rstart ) adatrj0 = 0.e0 ! adatrj0 initialized in rst_read when restart 81 78 82 79 adatrj = adatrj0 … … 115 112 iday1 = INT( zadatrjn ) 116 113 117 if( iday1 - iday0 >= 1 .AND. ( kt /= nit000 .OR. nrstdt == 2 ) ) THEN114 IF( iday1 - iday0 >= 1 .AND. ( kt /= nit000 .OR. nrstdt == 2 ) ) THEN 118 115 119 116 ! increase calendar
Note: See TracChangeset
for help on using the changeset viewer.