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 13463 for NEMO/branches/2019/dev_r11351_fldread_with_XIOS/tests/ICE_ADV1D/MY_SRC/usrdef_nam.F90 – NEMO

Ignore:
Timestamp:
2020-09-14T17:40:34+02:00 (4 years ago)
Author:
andmirek
Message:

Ticket #2195:update to trunk 13461

Location:
NEMO/branches/2019/dev_r11351_fldread_with_XIOS
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2019/dev_r11351_fldread_with_XIOS

    • Property svn:externals
      •  

        old new  
        33^/utils/build/mk@HEAD         mk 
        44^/utils/tools@HEAD            tools 
        5 ^/vendors/AGRIF/dev@HEAD      ext/AGRIF 
         5^/vendors/AGRIF/dev_r12970_AGRIF_CMEMS      ext/AGRIF 
        66^/vendors/FCM@HEAD            ext/FCM 
        77^/vendors/IOIPSL@HEAD         ext/IOIPSL 
         8 
         9# SETTE 
         10^/utils/CI/sette@13382        sette 
  • NEMO/branches/2019/dev_r11351_fldread_with_XIOS/tests/ICE_ADV1D/MY_SRC/usrdef_nam.F90

    r10513 r13463  
    1414   !!   usr_def_hgr   : initialize the horizontal mesh  
    1515   !!---------------------------------------------------------------------- 
    16    USE dom_oce  , ONLY: nimpp , njmpp            ! i- & j-indices of the local domain 
    1716   USE par_oce        ! ocean space and time domain 
    1817   USE phycst         ! physical constants 
     
    4039CONTAINS 
    4140 
    42    SUBROUTINE usr_def_nam( ldtxt, ldnam, cd_cfg, kk_cfg, kpi, kpj, kpk, kperio ) 
     41   SUBROUTINE usr_def_nam( cd_cfg, kk_cfg, kpi, kpj, kpk, kperio ) 
    4342      !!---------------------------------------------------------------------- 
    4443      !!                     ***  ROUTINE dom_nam  *** 
     
    5251      !! ** input   : - namusr_def namelist found in namelist_cfg 
    5352      !!---------------------------------------------------------------------- 
    54       CHARACTER(len=*), DIMENSION(:), INTENT(out) ::   ldtxt, ldnam    ! stored print information 
    5553      CHARACTER(len=*)              , INTENT(out) ::   cd_cfg          ! configuration name 
    5654      INTEGER                       , INTENT(out) ::   kk_cfg          ! configuration resolution 
     
    5856      INTEGER                       , INTENT(out) ::   kperio          ! lateral global domain b.c.  
    5957      ! 
    60       INTEGER ::   ios, ii   ! Local integer 
     58      INTEGER ::   ios       ! Local integer 
    6159      REAL(wp)::   zlx, zly  ! Local scalars 
    6260      !! 
     
    6462      !!---------------------------------------------------------------------- 
    6563      ! 
    66       ii = 1 
     64      READ  ( numnam_cfg, namusr_def, IOSTAT = ios, ERR = 902 ) 
     65902   IF( ios /= 0 )   CALL ctl_nam ( ios , 'namusr_def in configuration namelist' ) 
    6766      ! 
    68       REWIND( numnam_cfg )          ! Namelist namusr_def (exist in namelist_cfg only) 
    69       READ  ( numnam_cfg, namusr_def, IOSTAT = ios, ERR = 902 ) 
    70 902   IF( ios /= 0 )   CALL ctl_nam ( ios , 'namusr_def in configuration namelist', .TRUE. ) 
    71       ! 
    72       WRITE( ldnam(:), namusr_def ) 
     67      IF(lwm)   WRITE( numond, namusr_def ) 
    7368      ! 
    7469      cd_cfg = 'ICE_ADV1D'           ! name & resolution (not used) 
     
    8277      zlx = kpi*rn_dx*1.e-3 
    8378      zly = kpj*rn_dy*1.e-3 
    84       !                             ! control print 
    85       WRITE(ldtxt(ii),*) '   '                                                                          ;   ii = ii + 1 
    86       WRITE(ldtxt(ii),*) 'usr_def_nam  : read the user defined namelist (namusr_def) in namelist_cfg'   ;   ii = ii + 1 
    87       WRITE(ldtxt(ii),*) '~~~~~~~~~~~ '                                                                 ;   ii = ii + 1 
    88       WRITE(ldtxt(ii),*) '   Namelist namusr_def : ICE_ADV1D test case'                                 ;   ii = ii + 1 
    89       WRITE(ldtxt(ii),*) '      horizontal resolution                    rn_dx  = ', rn_dx, ' meters'   ;   ii = ii + 1 
    90       WRITE(ldtxt(ii),*) '      horizontal resolution                    rn_dy  = ', rn_dy, ' meters'   ;   ii = ii + 1 
    91       WRITE(ldtxt(ii),*) '      ICE_ADV1D domain  '                                                     ;   ii = ii + 1 
    92       WRITE(ldtxt(ii),*) '         LX [km]: ', zlx                                                      ;   ii = ii + 1 
    93       WRITE(ldtxt(ii),*) '         LY [km]: ', zly                                                      ;   ii = ii + 1 
    94       WRITE(ldtxt(ii),*) '         resulting global domain size :        jpiglo = ', kpi                ;   ii = ii + 1 
    95       WRITE(ldtxt(ii),*) '                                               jpjglo = ', kpj                ;   ii = ii + 1 
    96       WRITE(ldtxt(ii),*) '                                               jpkglo = ', kpk                ;   ii = ii + 1 
    97       WRITE(ldtxt(ii),*) '         Coriolis:', ln_corio                                                 ;   ii = ii + 1 
    98       ! 
    9979      !                             ! Set the lateral boundary condition of the global domain 
    10080      kperio = 0                    ! ICE_ADV1D configuration : bi-periodic basin 
    101       ! 
    102       WRITE(ldtxt(ii),*) '   '                                                                          ;   ii = ii + 1 
    103       WRITE(ldtxt(ii),*) '   Lateral boundary condition of the global domain'                           ;   ii = ii + 1 
    104       WRITE(ldtxt(ii),*) '      ICE_ADV1D : closed basin                    jperio = ', kperio          ;   ii = ii + 1 
     81      !                             ! control print 
     82      IF(lwp) THEN 
     83         WRITE(numout,*) '   ' 
     84         WRITE(numout,*) 'usr_def_nam  : read the user defined namelist (namusr_def) in namelist_cfg' 
     85         WRITE(numout,*) '~~~~~~~~~~~ ' 
     86         WRITE(numout,*) '   Namelist namusr_def : ICE_ADV1D test case' 
     87         WRITE(numout,*) '      horizontal resolution                    rn_dx  = ', rn_dx, ' meters' 
     88         WRITE(numout,*) '      horizontal resolution                    rn_dy  = ', rn_dy, ' meters' 
     89         WRITE(numout,*) '      ICE_ADV1D domain  ' 
     90         WRITE(numout,*) '         LX [km]: ', zlx 
     91         WRITE(numout,*) '         LY [km]: ', zly 
     92         WRITE(numout,*) '         resulting global domain size :        Ni0glo = ', kpi 
     93         WRITE(numout,*) '                                               Nj0glo = ', kpj 
     94         WRITE(numout,*) '                                               jpkglo = ', kpk 
     95         WRITE(numout,*) '         Coriolis:', ln_corio 
     96         WRITE(numout,*) '   ' 
     97         WRITE(numout,*) '   Lateral boundary condition of the global domain' 
     98         WRITE(numout,*) '      ICE_ADV1D : closed basin                 jperio = ', kperio 
     99      ENDIF 
    105100      ! 
    106101   END SUBROUTINE usr_def_nam 
Note: See TracChangeset for help on using the changeset viewer.