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 14448 for NEMO/branches/2021/dev_r14383_PISCES_NEWDEV_PISCO/tests/TSUNAMI/MY_SRC/usrdef_nam.F90 – NEMO

Ignore:
Timestamp:
2021-02-12T09:57:09+01:00 (3 years ago)
Author:
cetlod
Message:

NEWDEV_PISCO : merge with the trunk at revision r14447

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2021/dev_r14383_PISCES_NEWDEV_PISCO/tests/TSUNAMI/MY_SRC/usrdef_nam.F90

    r14297 r14448  
    3737   INTEGER , PUBLIC ::   nn_fcase   =    1   ! F computation (0:f0, 1:Beta, 2:real) 
    3838   REAL(wp), PUBLIC ::   rn_ppgphi0 =   38.5 ! reference latitude for beta-plane  
    39    INTEGER , PUBLIC ::   nn_perio   =    0   ! periodicity of the channel (0=closed, 1=E-W) 
    4039 
    4140   !!---------------------------------------------------------------------- 
     
    4645CONTAINS 
    4746 
    48    SUBROUTINE usr_def_nam( cd_cfg, kk_cfg, kpi, kpj, kpk, kperio ) 
     47   SUBROUTINE usr_def_nam( cd_cfg, kk_cfg, kpi, kpj, kpk, ldIperio, ldJperio, ldNFold, cdNFtype ) 
    4948      !!---------------------------------------------------------------------- 
    5049      !!                     ***  ROUTINE dom_nam  *** 
     
    5857      !! ** input   : - namusr_def namelist found in namelist_cfg 
    5958      !!---------------------------------------------------------------------- 
    60       CHARACTER(len=*)              , INTENT(out) ::   cd_cfg          ! configuration name 
    61       INTEGER                       , INTENT(out) ::   kk_cfg          ! configuration resolution 
    62       INTEGER                       , INTENT(out) ::   kpi, kpj, kpk   ! global domain sizes  
    63       INTEGER                       , INTENT(out) ::   kperio          ! lateral global domain b.c.  
     59      CHARACTER(len=*), INTENT(out) ::   cd_cfg               ! configuration name 
     60      INTEGER         , INTENT(out) ::   kk_cfg               ! configuration resolution 
     61      INTEGER         , INTENT(out) ::   kpi, kpj, kpk        ! global domain sizes 
     62      LOGICAL         , INTENT(out) ::   ldIperio, ldJperio   ! i- and j- periodicity 
     63      LOGICAL         , INTENT(out) ::   ldNFold              ! North pole folding 
     64      CHARACTER(len=1), INTENT(out) ::   cdNFtype             ! Folding type: T or F 
    6465      ! 
    6566      INTEGER ::   ios      ! Local integer 
     67      LOGICAL ::   ln_Iperio, ln_Jperio 
    6668      !! 
    6769      NAMELIST/namusr_def/  rn_domszx, rn_domszy, rn_domszz, rn_dx, rn_dy, rn_0xratio, rn_0yratio   & 
    68          &                 , nn_fcase, rn_ppgphi0, nn_perio 
     70         &                 , nn_fcase, rn_ppgphi0, ln_Iperio, ln_Jperio 
    6971      !!---------------------------------------------------------------------- 
    7072      ! 
     
    8587#endif 
    8688      ! 
    87       IF(lwm)   WRITE( numond, namusr_def ) 
    88       ! 
    8989      cd_cfg = 'TSUNAMI'             ! name & resolution (not used) 
    9090      kk_cfg = INT( rn_dx ) 
     
    9292      IF( Agrif_Root() ) THEN        ! Global Domain size:  TSUNAMI global domain is  1800 km x 1800 Km x 5000 m 
    9393         kpi = NINT( rn_domszx / rn_dx ) + 1 
    94          kpj = NINT( rn_domszy / rn_dy ) + 3 
     94         kpj = NINT( rn_domszy / rn_dy ) + 1 
    9595      ELSE                           ! Global Domain size: add nbghostcells + 1 "land" point on each side 
    9696         kpi  = nbcellsx + nbghostcells_x   + nbghostcells_x   + 2 
     
    9898      ENDIF 
    9999      kpk = 2 
    100       !                             ! Set the lateral boundary condition of the global domain 
    101       kperio = 1                    ! TSUNAMI configuration : closed basin 
    102       !                             ! control print 
     100      !                              ! Set the lateral boundary condition of the global domain 
     101      ! 
     102      ldIperio = ln_Iperio   ;   ldJperio = ln_Jperio 
     103      ldNFold  =  .FALSE.    ;   cdNFtype = '-' 
     104      ! 
     105      !                              ! control print 
    103106      IF(lwp) THEN 
    104107         WRITE(numout,*) '   ' 
     
    115118         WRITE(numout,*) '      F computation                     nn_fcase   = ',   nn_fcase 
    116119         WRITE(numout,*) '      Reference latitude                rn_ppgphi0 = ', rn_ppgphi0 
    117          WRITE(numout,*) '      Periodicity of the basin            nn_perio = ', nn_perio 
     120         WRITE(numout,*) '   ' 
    118121      ENDIF 
    119       !                             ! Set the lateral boundary condition of the global domain 
    120       kperio = nn_perio                    ! TSUNAMI configuration : closed basin 
    121122      ! 
    122123   END SUBROUTINE usr_def_nam 
Note: See TracChangeset for help on using the changeset viewer.