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 2236 for branches/DEV_r2106_LOCEAN2010/NEMO/OPA_SRC/DOM – NEMO

Ignore:
Timestamp:
2010-10-12T20:49:32+02:00 (14 years ago)
Author:
cetlod
Message:

First guess of NEMO_v3.3

Location:
branches/DEV_r2106_LOCEAN2010/NEMO/OPA_SRC/DOM
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • branches/DEV_r2106_LOCEAN2010/NEMO/OPA_SRC/DOM/closea.F90

    r2000 r2236  
    4646   !!  OPA 9.0 , LOCEAN-IPSL (2006)  
    4747   !! $Id$ 
    48    !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt) 
     48   !! Software governed by the CeCILL licence  (NEMOGCM/License_CeCILL.txt) 
    4949   !!---------------------------------------------------------------------- 
    5050 
  • branches/DEV_r2106_LOCEAN2010/NEMO/OPA_SRC/DOM/daymod.F90

    r2200 r2236  
    4545   !! NEMO/OPA 3.2 , LOCEAN-IPSL (2009)  
    4646   !! $Id$ 
    47    !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt) 
     47   !! Software governed by the CeCILL licence  (NEMOGCM/License_CeCILL.txt) 
    4848   !!---------------------------------------------------------------------- 
    4949 
     
    6767      !!              - nmonth_len, nyear_len, nmonth_half, nmonth_end through day_mth 
    6868      !!---------------------------------------------------------------------- 
     69      INTEGER :: inbday, irest 
     70      REAL(wp) :: zjul 
     71      !!---------------------------------------------------------------------- 
    6972 
    7073      ! all calendar staff is based on the fact that MOD( rday, rdttra(1) ) == 0 
     
    105108      ! day since january 1st 
    106109      nday_year = nday + SUM( nmonth_len(1:nmonth - 1) ) 
    107        
     110 
     111      !compute number of days between last monday and today       
     112      IF( nn_leapy==1 )THEN 
     113         CALL ymds2ju( 1900, 01, 01, 0.0, zjul )  ! compute julian day value of 01.01.1900 (monday) 
     114         inbday = INT(fjulday) - NINT(zjul)       ! compute nb day between  01.01.1900 and current day fjulday  
     115         irest = MOD(inbday,7)                    ! compute nb day between last monday and current day fjulday  
     116         IF(irest==0 )irest = 7  
     117      ENDIF 
     118 
    108119      ! number of seconds since the beginning of current year/month at the middle of the time-step 
    109120      nsec_year  = nday_year * nsecd - ndt05   ! 1 time step before the middle of the first time step 
    110121      nsec_month = nday      * nsecd - ndt05   ! because day will be called at the beginning of step 
    111122      nsec_day   =             nsecd - ndt05 
     123      nsec_week  = 0 
     124      IF( nn_leapy==1 ) nsec_week  = irest     * nsecd - ndt05 
    112125 
    113126      ! control print 
    114127      IF(lwp) WRITE(numout,'(a,i6,a,i2,a,i2,a,i6)')' ==============>> 1/2 time step before the start of the run DATE Y/M/D = ',   & 
    115            &                   nyear, '/', nmonth, '/', nday, '  nsec_day:', nsec_day 
     128           &                   nyear, '/', nmonth, '/', nday, '  nsec_day:', nsec_day, '  nsec_week:', nsec_week 
    116129 
    117130      ! Up to now, calendar parameters are related to the end of previous run (nit000-1) 
     
    200213      nsec_year  = nsec_year  + ndt  
    201214      nsec_month = nsec_month + ndt                  
     215      IF( nn_leapy==1 ) nsec_week  = nsec_week  + ndt 
    202216      nsec_day   = nsec_day   + ndt                 
    203217      adatrj  = adatrj  + rdttra(1) / rday 
     
    228242         ndastp = nyear * 10000 + nmonth * 100 + nday   ! NEW date 
    229243         ! 
     244         !compute first day of the year in julian days 
     245         CALL ymds2ju( nyear, 01, 01, 0.0, fjulstartyear ) 
     246         ! 
    230247         IF(lwp) WRITE(numout,'(a,i8,a,i4.4,a,i2.2,a,i2.2,a,i3.3)') '======>> time-step =', kt,   & 
    231248              &   '      New day, DATE Y/M/D = ', nyear, '/', nmonth, '/', nday, '      nday_year = ', nday_year 
    232249         IF(lwp) WRITE(numout,'(a,i8,a,i7,a,i5)') '         nsec_year = ', nsec_year,   & 
    233               &   '   nsec_month = ', nsec_month, '   nsec_day = ', nsec_day 
    234       ENDIF 
     250              &   '   nsec_month = ', nsec_month, '   nsec_day = ', nsec_day, '   nsec_week = ', nsec_week 
     251      ENDIF 
     252 
     253      IF( nsec_week .GT. 7*86400 ) nsec_week = ndt05 
    235254       
    236255      IF(ln_ctl) THEN 
  • branches/DEV_r2106_LOCEAN2010/NEMO/OPA_SRC/DOM/dom_oce.F90

    r2148 r2236  
    99   !! NEMO/OPA 3.2 , LOCEAN-IPSL (2009)  
    1010   !! $Id$  
    11    !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt) 
     11   !! Software governed by the CeCILL licence  (NEMOGCM/License_CeCILL.txt) 
    1212   !!---------------------------------------------------------------------- 
    1313   USE par_oce      ! ocean parameters 
     
    197197   !! calendar variables 
    198198   !! --------------------------------------------------------------------- 
    199    INTEGER , PUBLIC ::   nyear       !: current year 
    200    INTEGER , PUBLIC ::   nmonth      !: current month 
    201    INTEGER , PUBLIC ::   nday        !: current day of the month 
    202    INTEGER , PUBLIC ::   ndastp      !: time step date in yyyymmdd format 
    203    INTEGER , PUBLIC ::   nday_year   !: current day counted from jan 1st of the current year 
    204    INTEGER , PUBLIC ::   nsec_year   !: current time step counted in second since 00h jan 1st of the current year 
    205    INTEGER , PUBLIC ::   nsec_month  !: current time step counted in second since 00h 1st day of the current month 
    206    INTEGER , PUBLIC ::   nsec_day    !: current time step counted in second since 00h of the current day 
    207    REAL(wp), PUBLIC ::   fjulday     !: julian day  
    208    REAL(wp), PUBLIC ::   adatrj      !: number of elapsed days since the begining of the whole simulation 
    209    !                                 !: (cumulative duration of previous runs that may have used different time-step size) 
     199   INTEGER , PUBLIC ::   nyear         !: current year 
     200   INTEGER , PUBLIC ::   nmonth        !: current month 
     201   INTEGER , PUBLIC ::   nday          !: current day of the month 
     202   INTEGER , PUBLIC ::   ndastp        !: time step date in yyyymmdd format 
     203   INTEGER , PUBLIC ::   nday_year     !: current day counted from jan 1st of the current year 
     204   INTEGER , PUBLIC ::   nsec_year     !: current time step counted in second since 00h jan 1st of the current year 
     205   INTEGER , PUBLIC ::   nsec_month    !: current time step counted in second since 00h 1st day of the current month 
     206   INTEGER , PUBLIC ::   nsec_week     !: current time step counted in second since 00h of last monday 
     207   INTEGER , PUBLIC ::   nsec_day      !: current time step counted in second since 00h of the current day 
     208   REAL(wp), PUBLIC ::   fjulday       !: current julian day  
     209   REAL(wp), PUBLIC ::   fjulstartyear !: first day of the current year in julian days 
     210   REAL(wp), PUBLIC ::   adatrj        !: number of elapsed days since the begining of the whole simulation 
     211   !                                   !: (cumulative duration of previous runs that may have used different time-step size) 
    210212   INTEGER , PUBLIC, DIMENSION(0: 1) ::   nyear_len     !: length in days of the previous/current year 
    211213   INTEGER , PUBLIC, DIMENSION(0:13) ::   nmonth_len    !: length in days of the months of the current year 
     
    230232   LOGICAL, PUBLIC, PARAMETER ::   lk_agrif = .FALSE.   !: agrif flag 
    231233 
     234   !!---------------------------------------------------------------------- 
     235   !! mpp reproducibility 
     236   !!---------------------------------------------------------------------- 
     237#if defined key_mpp_rep1 || defined key_mpp_re2 
     238   LOGICAL, PUBLIC, PARAMETER ::   lk_mpp_rep = .TRUE.    !: agrif flag 
     239#else 
     240   LOGICAL, PUBLIC, PARAMETER ::   lk_mpp_rep = .FALSE.   !: agrif flag 
     241#endif 
     242 
    232243CONTAINS 
    233244   LOGICAL FUNCTION Agrif_Root() 
     
    239250   END FUNCTION Agrif_CFixed 
    240251#endif 
    241  
    242252   !!====================================================================== 
    243253END MODULE dom_oce 
  • branches/DEV_r2106_LOCEAN2010/NEMO/OPA_SRC/DOM/domain.F90

    r1976 r2236  
    4343   !! NEMO/OPA 3.2 , LOCEAN-IPSL (2009)  
    4444   !! $Id$ 
    45    !! Software is governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt) 
     45   !! Software is governed by the CeCILL licence  (NEMOGCM/License_CeCILL.txt) 
    4646   !!------------------------------------------------------------------------- 
    4747 
  • branches/DEV_r2106_LOCEAN2010/NEMO/OPA_SRC/DOM/domcfg.F90

    r1566 r2236  
    2424   !! NEMO/OPA 3.2 , LODYC-IPSL  (2009) 
    2525   !! $Id$  
    26    !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt)  
     26   !! Software governed by the CeCILL licence  (NEMOGCM/License_CeCILL.txt)  
    2727   !!---------------------------------------------------------------------- 
    2828 
  • branches/DEV_r2106_LOCEAN2010/NEMO/OPA_SRC/DOM/domhgr.F90

    r1953 r2236  
    4040   !!   OPA 9.0 , LOCEAN-IPSL (2005)  
    4141   !! $Id$  
    42    !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt) 
     42   !! Software governed by the CeCILL licence  (NEMOGCM/License_CeCILL.txt) 
    4343   !!---------------------------------------------------------------------- 
    4444 
  • branches/DEV_r2106_LOCEAN2010/NEMO/OPA_SRC/DOM/dommsk.F90

    r1707 r2236  
    4444   !! NEMO/OPA 3.2 , LODYC-IPSL  (2009) 
    4545   !! $Id$  
    46    !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt)  
     46   !! Software governed by the CeCILL licence  (NEMOGCM/License_CeCILL.txt)  
    4747   !!---------------------------------------------------------------------- 
    4848 
  • branches/DEV_r2106_LOCEAN2010/NEMO/OPA_SRC/DOM/domngb.F90

    r1725 r2236  
    2121   !! NEMO/OPA 3.2 , LOCEAN-IPSL (2008)  
    2222   !! $Id$  
    23    !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt) 
     23   !! Software governed by the CeCILL licence  (NEMOGCM/License_CeCILL.txt) 
    2424   !!---------------------------------------------------------------------- 
    2525 
  • branches/DEV_r2106_LOCEAN2010/NEMO/OPA_SRC/DOM/domstp.F90

    r1152 r2236  
    2929   !!   OPA 9.0 , LOCEAN-IPSL (2005)  
    3030   !! $Id$  
    31    !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt) 
     31   !! Software governed by the CeCILL licence  (NEMOGCM/License_CeCILL.txt) 
    3232   !!---------------------------------------------------------------------- 
    3333 
  • branches/DEV_r2106_LOCEAN2010/NEMO/OPA_SRC/DOM/domvvl.F90

    r2148 r2236  
    3838   !! NEMO/OPA 3.2 , LOCEAN-IPSL (2009)  
    3939   !! $Id$ 
    40    !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt) 
     40   !! Software governed by the CeCILL licence  (NEMOGCM/License_CeCILL.txt) 
    4141   !!---------------------------------------------------------------------- 
    4242 
  • branches/DEV_r2106_LOCEAN2010/NEMO/OPA_SRC/DOM/domzgr.F90

    r1694 r2236  
    3434   USE lbclnk          ! ocean lateral boundary conditions (or mpp link) 
    3535   USE closea          ! closed seas 
    36    USE c1d             ! 1D configuration 
    3736 
    3837   IMPLICIT NONE 
     
    5958   !! NEMO/OPA 3.0 , LOCEAN-IPSL (2008)  
    6059   !! $Id$ 
    61    !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt) 
     60   !! Software governed by the CeCILL licence  (NEMOGCM/License_CeCILL.txt) 
    6261   !!---------------------------------------------------------------------- 
    6362 
     
    482481      !                                               ! =============== ! 
    483482 
    484       !                                               ! =================== ! 
    485       IF( .NOT. lk_c1d )   CALL zgr_bat_ctl           !   Bathymetry check  ! 
    486       !                                               ! =================== ! 
     483#if ! defined key_c1d 
     484      !                          ! =================== ! 
     485      CALL zgr_bat_ctl           !   Bathymetry check  ! 
     486      !                          ! =================== ! 
     487#endif 
    487488   END SUBROUTINE zgr_bat 
    488489 
     
    984985      !                                               ! =============== ! 
    985986 
    986       !                                               ! =================== ! 
    987       IF( .NOT. lk_c1d )   CALL zgr_bat_ctl           !   Bathymetry check  ! 
    988       !                                               ! =================== ! 
     987#if ! defined key_c1d 
     988      !                          ! =================== ! 
     989      CALL zgr_bat_ctl           !   Bathymetry check  ! 
     990      !                          ! =================== ! 
     991#endif 
    989992   END SUBROUTINE zgr_zps 
    990993 
     
    14761479      !                                               ! =========== 
    14771480 
    1478       !                                               ! =================== ! 
    1479       IF( .NOT. lk_c1d )   CALL zgr_bat_ctl           !   Bathymetry check  ! 
    1480       !                                               ! =================== ! 
     1481#if ! defined key_c1d 
     1482      !                          ! =================== ! 
     1483      CALL zgr_bat_ctl           !   Bathymetry check  ! 
     1484      !                          ! =================== ! 
     1485#endif 
    14811486 
    14821487      !                                               ! ============= 
  • branches/DEV_r2106_LOCEAN2010/NEMO/OPA_SRC/DOM/domzgr_substitute.h90

    r2148 r2236  
    108108   !! NEMO/OPA 3.2 , LOCEAN-IPSL (2009)  
    109109   !! $Id$ 
    110    !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt) 
     110   !! Software governed by the CeCILL licence  (NEMOGCM/License_CeCILL.txt) 
    111111   !!---------------------------------------------------------------------- 
  • branches/DEV_r2106_LOCEAN2010/NEMO/OPA_SRC/DOM/phycst.F90

    r2224 r2236  
    8383   !! NEMO/OPA 3.2 , LOCEAN-IPSL (2009)  
    8484   !! $Id$  
    85    !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt) 
     85   !! Software governed by the CeCILL licence  (NEMOGCM/License_CeCILL.txt) 
    8686   !!---------------------------------------------------------------------- 
    8787    
Note: See TracChangeset for help on using the changeset viewer.