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 14297 – NEMO

Changeset 14297


Ignore:
Timestamp:
2021-01-13T12:54:45+01:00 (3 years ago)
Author:
smasson
Message:

trunk: simplify TSUNAMI test case

Location:
NEMO/trunk/tests/TSUNAMI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • NEMO/trunk/tests/TSUNAMI/EXPREF/namelist_cfg

    r14225 r14297  
    2525   rn_dx       =     10.   !  x horizontal resolution   [km] 
    2626   rn_dy       =     10.   !  y horizontal resolution   [km] 
    27    rn_dz       =    100.   !  z vertical resolution      [m] 
    2827   rn_0xratio  =      0.2  !  x-domain ratio of the 0 
    2928   rn_0yratio  =      0.4  !  y-domain ratio of the 0 
    30    nn_fcase    =      0    !  F computation (0:f0, 1:Beta, 2:real) 
     29   nn_fcase    =      0    !  Coriolis frequency(f) computation (0:f0, 1:Beta plan, 2:real) 
    3130   rn_ppgphi0  =    38.5   !  Reference latitude      [degrees] 
    3231   nn_perio    =      7 
  • NEMO/trunk/tests/TSUNAMI/MY_SRC/usrdef_nam.F90

    r14225 r14297  
    3333   REAL(wp), PUBLIC ::   rn_dx      =   30.  ! x horizontal resolution   [km] 
    3434   REAL(wp), PUBLIC ::   rn_dy      =   30.  ! y horizontal resolution   [km] 
    35    REAL(wp), PUBLIC ::   rn_dz      =  500.  ! vertical resolution        [m] 
    3635   REAL(wp), PUBLIC ::   rn_0xratio =    0.5 ! x domain ratio of the 0 
    3736   REAL(wp), PUBLIC ::   rn_0yratio =    0.5 ! x domain ratio of the 0 
     
    6564      ! 
    6665      INTEGER ::   ios      ! Local integer 
    67       REAL(wp)::   zh       ! Local scalars 
    6866      !! 
    69       NAMELIST/namusr_def/  rn_domszx, rn_domszy, rn_domszz, rn_dx, rn_dy, rn_dz, rn_0xratio, rn_0yratio   & 
     67      NAMELIST/namusr_def/  rn_domszx, rn_domszy, rn_domszz, rn_dx, rn_dy, rn_0xratio, rn_0yratio   & 
    7068         &                 , nn_fcase, rn_ppgphi0, nn_perio 
    7169      !!---------------------------------------------------------------------- 
     
    8179         rn_dx = Agrif_Parent(rn_dx)/Agrif_Rhox() 
    8280         rn_dy = Agrif_Parent(rn_dy)/Agrif_Rhoy() 
    83          rn_dz = Agrif_Parent(rn_dz) 
    8481         rn_ppgphi0 = Agrif_Parent(rn_ppgphi0) 
    8582      ENDIF 
    86       rn_0xratio = 0.5 
     83      rn_0xratio = 0.5   ! not really working I guess...  
    8784      rn_0yratio = 0.5 
    8885#endif 
     
    10097         kpj  = nbcellsy + nbghostcells_y_s + nbghostcells_y_n + 2 
    10198      ENDIF 
    102       kpk = MAX( 2, NINT( rn_domszz / rn_dz ) + 1 ) 
    103       ! 
    104       zh  = (kpk-1)*rn_dz 
     99      kpk = 2 
    105100      !                             ! Set the lateral boundary condition of the global domain 
    106101      kperio = 1                    ! TSUNAMI configuration : closed basin 
     
    116111         WRITE(numout,*) '      horizontal x-resolution           rn_dx      = ',     rn_dx, ' km' 
    117112         WRITE(numout,*) '      horizontal y-resolution           rn_dy      = ',     rn_dy, ' km' 
    118          WRITE(numout,*) '      vertical resolution               rn_dz      = ',     rn_dz, '  m' 
    119113         WRITE(numout,*) '      x-domain ratio of the 0           rn_0xratio = ', rn_0xratio 
    120114         WRITE(numout,*) '      y-domain ratio of the 0           rn_0yratio = ', rn_0yratio 
    121          WRITE(numout,*) '          H [m] : ', zh 
    122115         WRITE(numout,*) '      F computation                     nn_fcase   = ',   nn_fcase 
    123116         WRITE(numout,*) '      Reference latitude                rn_ppgphi0 = ', rn_ppgphi0 
Note: See TracChangeset for help on using the changeset viewer.