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 4147 for branches/2013/dev_LOCEAN_2013/NEMOGCM/NEMO/NST_SRC – NEMO

Ignore:
Timestamp:
2013-11-04T12:51:55+01:00 (11 years ago)
Author:
cetlod
Message:

merge in dev_LOCEAN_2013, the 1st development branch dev_r3853_CNRS9_Confsetting, from its starting point ( r3853 ) on the trunk: see ticket #1169

Location:
branches/2013/dev_LOCEAN_2013/NEMOGCM/NEMO/NST_SRC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2013/dev_LOCEAN_2013/NEMOGCM/NEMO/NST_SRC/agrif_oce.F90

    r3680 r4147  
    1919 
    2020   !                                              !!* Namelist namagrif: AGRIF parameters 
    21    LOGICAL , PUBLIC ::   ln_spc_dyn    = .FALSE.   !: 
    22    INTEGER , PUBLIC ::   nn_cln_update = 3         !: update frequency  
    23    REAL(wp), PUBLIC ::   rn_sponge_tra = 2800.     !: sponge coeff. for tracers 
    24    REAL(wp), PUBLIC ::   rn_sponge_dyn = 2800.     !: sponge coeff. for dynamics 
     21   LOGICAL , PUBLIC ::   ln_spc_dyn      !: 
     22   INTEGER , PUBLIC ::   nn_cln_update   !: update frequency  
     23   REAL(wp), PUBLIC ::   rn_sponge_tra   !: sponge coeff. for tracers 
     24   REAL(wp), PUBLIC ::   rn_sponge_dyn   !: sponge coeff. for dynamics 
    2525 
    2626   !                                              !!! OLD namelist names 
  • branches/2013/dev_LOCEAN_2013/NEMOGCM/NEMO/NST_SRC/agrif_user.F90

    r3680 r4147  
    3131      jpi     = ( jpiglo-2*jpreci + (jpni-1+0) ) / jpni + 2*jpreci 
    3232      jpj     = ( jpjglo-2*jprecj + (jpnj-1+0) ) / jpnj + 2*jprecj 
    33       jpk     = jpkdta 
    34       jpim1   = jpi-1 
    35       jpjm1   = jpj-1 
    36       jpkm1   = jpk-1                                         
    37       jpij    = jpi*jpj 
     33      jpk     = jpkdta  
     34      jpim1   = jpi-1  
     35      jpjm1   = jpj-1  
     36      jpkm1   = jpk-1                                          
     37      jpij    = jpi*jpj  
    3838      jpidta  = jpiglo 
    3939      jpjdta  = jpjglo 
     
    6363   IMPLICIT NONE 
    6464   !!---------------------------------------------------------------------- 
    65  
    6665   ! 0. Initializations 
    6766   !------------------- 
    68 #if defined key_orca_r025 || defined key_orca_r05 || defined key_orca_r2 || defined key_orca_r4 
    69    jp_cfg = -1    ! set special value for jp_cfg on fine grids 
    70    cp_cfg = "default" 
    71 #endif 
    72  
     67   IF( cp_cfg == 'orca' ) then 
     68      IF ( jp_cfg == 2 .OR. jp_cfg == 025 .OR. jp_cfg == 05 & 
     69  &                      .OR. jp_cfg == 4 ) THEN 
     70         jp_cfg = -1    ! set special value for jp_cfg on fine grids 
     71         cp_cfg = "default" 
     72      ENDIF 
     73   ENDIF 
    7374   ! Specific fine grid Initializations 
    7475   ! no tracer damping on fine grids 
     
    7879   lk_bdy = .FALSE. 
    7980 
     81 
    8082   CALL nemo_init  ! Initializations of each fine grid 
     83 
    8184   CALL agrif_nemo_init 
    8285   CALL Agrif_InitValues_cont_dom 
     
    586589   IMPLICIT NONE 
    587590   ! 
     591   INTEGER  ::   ios                 ! Local integer output status for namelist read 
    588592   NAMELIST/namagrif/ nn_cln_update, rn_sponge_tra, rn_sponge_dyn, ln_spc_dyn 
    589593   !!---------------------------------------------------------------------- 
    590594   ! 
    591    REWIND( numnam )                ! Read namagrif namelist 
    592    READ  ( numnam, namagrif ) 
     595      REWIND( numnam_ref )              ! Namelist namagrif in reference namelist : AGRIF zoom 
     596      READ  ( numnam_ref, namagrif, IOSTAT = ios, ERR = 901) 
     597901   IF( ios /= 0 ) CALL ctl_nam ( ios , 'namagrif in reference namelist', lwp ) 
     598 
     599      REWIND( numnam_cfg )              ! Namelist namagrif in configuration namelist : AGRIF zoom 
     600      READ  ( numnam_cfg, namagrif, IOSTAT = ios, ERR = 902 ) 
     601902   IF( ios /= 0 ) CALL ctl_nam ( ios , 'namagrif in configuration namelist', lwp ) 
     602      WRITE ( numond, namagrif ) 
    593603   ! 
    594604   IF(lwp) THEN                    ! control print 
Note: See TracChangeset for help on using the changeset viewer.