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 11320 for NEMO/branches/2019/dev_r10984_HPC-13_IRRMANN_BDY_optimization/tests/VORTEX/MY_SRC/usrdef_nam.F90 – NEMO

Ignore:
Timestamp:
2019-07-22T14:52:29+02:00 (5 years ago)
Author:
smasson
Message:

dev_r10984_HPC-13 : add missing if(lwp) in [11317], see #2307 and #2285

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2019/dev_r10984_HPC-13_IRRMANN_BDY_optimization/tests/VORTEX/MY_SRC/usrdef_nam.F90

    r11317 r11320  
    8080      ! 
    8181      cd_cfg = 'VORTEX'             ! name & resolution (not used) 
    82       kk_cfg = INT( rn_dx ) 
     82      kk_cfg = nINT( rn_dx ) 
    8383      ! 
    84       ! Global Domain size:  VORTEX global domain is  1800 km x 1800 Km x 5000 m 
    85       kpi = INT( 1800.e3  / rn_dx ) + 3   
    86       kpj = INT( 1800.e3  / rn_dy ) + 3  
    87       kpk = INT( 5000._wp / rn_dz ) + 1 
    88 #if defined key_agrif 
    89       IF( .NOT. Agrif_Root() ) THEN 
     84      IF( Agrif_Root() ) THEN       ! Global Domain size:  VORTEX global domain is  1800 km x 1800 Km x 5000 m 
     85         kpi = NINT( 1800.e3  / rn_dx ) + 3   
     86         kpj = NINT( 1800.e3  / rn_dy ) + 3  
     87      ELSE 
    9088         kpi  = nbcellsx + 2 + 2*nbghostcells 
    9189         kpj  = nbcellsy + 2 + 2*nbghostcells 
    9290      ENDIF 
    93 #endif 
     91      kpk = NINT( 5000._wp / rn_dz ) + 1 
    9492      ! 
    9593      zlx = (kpi-2)*rn_dx*1.e-3 
    9694      zly = (kpj-2)*rn_dy*1.e-3 
    9795      zh  = (kpk-1)*rn_dz 
    98       !                             ! control print 
    99       WRITE(numout,*) '   ' 
    100       WRITE(numout,*) 'usr_def_nam  : read the user defined namelist (namusr_def) in namelist_cfg' 
    101       WRITE(numout,*) '~~~~~~~~~~~ ' 
    102       WRITE(numout,*) '   Namelist namusr_def : VORTEX test case' 
    103       WRITE(numout,*) '      horizontal resolution             rn_dx  = ', rn_dx, ' m' 
    104       WRITE(numout,*) '      horizontal resolution             rn_dy  = ', rn_dy, ' m' 
    105       WRITE(numout,*) '      vertical resolution               rn_dz  = ', rn_dz, ' m' 
    106       WRITE(numout,*) '      VORTEX domain: ' 
    107       WRITE(numout,*) '         LX [km]: ', zlx 
    108       WRITE(numout,*) '         LY [km]: ', zly 
    109       WRITE(numout,*) '          H [m] : ', zh 
    110       WRITE(numout,*) '      Reference latitude            rn_ppgphi0 = ', rn_ppgphi0 
    111       ! 
    11296      !                             ! Set the lateral boundary condition of the global domain 
    11397      kperio = 0                    ! VORTEX configuration : closed basin 
    114       ! 
    115       WRITE(numout,*) '   ' 
    116       WRITE(numout,*) '   Lateral boundary condition of the global domain' 
    117       WRITE(numout,*) '      VORTEX : closed basin            jperio = ', kperio 
     98      !                             ! control print 
     99      IF(lwp) THEN 
     100         WRITE(numout,*) '   ' 
     101         WRITE(numout,*) 'usr_def_nam  : read the user defined namelist (namusr_def) in namelist_cfg' 
     102         WRITE(numout,*) '~~~~~~~~~~~ ' 
     103         WRITE(numout,*) '   Namelist namusr_def : VORTEX test case' 
     104         WRITE(numout,*) '      horizontal resolution             rn_dx  = ', rn_dx, ' m' 
     105         WRITE(numout,*) '      horizontal resolution             rn_dy  = ', rn_dy, ' m' 
     106         WRITE(numout,*) '      vertical resolution               rn_dz  = ', rn_dz, ' m' 
     107         WRITE(numout,*) '      VORTEX domain: ' 
     108         WRITE(numout,*) '         LX [km]: ', zlx 
     109         WRITE(numout,*) '         LY [km]: ', zly 
     110         WRITE(numout,*) '          H [m] : ', zh 
     111         WRITE(numout,*) '      Reference latitude            rn_ppgphi0 = ', rn_ppgphi0 
     112         WRITE(numout,*) '   ' 
     113         WRITE(numout,*) '   Lateral boundary condition of the global domain' 
     114         WRITE(numout,*) '      VORTEX : closed basin            jperio = ', kperio 
     115      ENDIF 
    118116      ! 
    119117   END SUBROUTINE usr_def_nam 
Note: See TracChangeset for help on using the changeset viewer.