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/ICE_AGRIF – 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/ICE_AGRIF/MY_SRC/usrdef_nam.F90

    r11317 r11320  
    8181      ! 
    8282      cd_cfg = 'ICE_AGRIF'           ! name & resolution (not used) 
    83       kk_cfg = INT( rn_dx ) 
     83      kk_cfg = NINT( rn_dx ) 
    8484      ! 
    85       ! Global Domain size:  ICE_AGRIF domain is  300 km x 300 Km x 10 m 
    86       kpi = INT( 300.e3 / rn_dx ) -1 
    87       kpj = INT( 300.e3 / rn_dy ) -1 
    88 #if defined key_agrif 
    89       IF( .NOT. Agrif_Root() ) THEN 
     85      IF( Agrif_Root() ) THEN        ! Global Domain size:  ICE_AGRIF domain is  300 km x 300 Km x 10 m 
     86         kpi = NINT( 300.e3 / rn_dx ) - 1 
     87         kpj = NINT( 300.e3 / rn_dy ) - 1 
     88      ELSE 
    9089         kpi = nbcellsx + 2 + 2*nbghostcells 
    9190         kpj = nbcellsy + 2 + 2*nbghostcells 
    9291      ENDIF 
    93 #endif 
    9492      kpk = 1 
    9593      ! 
     
    9896      zlx = kpi*rn_dx*1.e-3 
    9997      zly = kpj*rn_dy*1.e-3 
     98      ! 
     99      IF( Agrif_Root() ) THEN   ;   kperio = 7     ! ICE_AGRIF configuration : bi-periodic basin 
     100      ELSE                      ;   kperio = 0     ! closed periodicity for the zoom 
     101      ENDIF 
    100102      !                             ! control print 
    101       WRITE(numout,*) '   ' 
    102       WRITE(numout,*) 'usr_def_nam  : read the user defined namelist (namusr_def) in namelist_cfg' 
    103       WRITE(numout,*) '~~~~~~~~~~~ ' 
    104       WRITE(numout,*) '   Namelist namusr_def : ICE_AGRIF test case' 
    105       WRITE(numout,*) '      horizontal resolution                    rn_dx  = ', rn_dx, ' meters' 
    106       WRITE(numout,*) '      horizontal resolution                    rn_dy  = ', rn_dy, ' meters' 
    107       WRITE(numout,*) '      ICE_AGRIF domain = 300 km x 300Km x 1 grid-point ' 
    108       WRITE(numout,*) '         LX [km]: ', zlx 
    109       WRITE(numout,*) '         LY [km]: ', zly 
    110       WRITE(numout,*) '         resulting global domain size :        jpiglo = ', kpi 
    111       WRITE(numout,*) '                                               jpjglo = ', kpj 
    112       WRITE(numout,*) '                                               jpkglo = ', kpk 
    113       WRITE(numout,*) '         Coriolis:', ln_corio 
    114       ! 
    115       !                             ! Set the lateral boundary condition of the global domain 
    116       kperio = 7                    ! ICE_AGRIF configuration : bi-periodic basin 
    117 #if defined key_agrif 
    118       IF( .NOT. Agrif_Root() ) THEN 
    119       kperio = 0 
     103      IF(lwp) THEN 
     104         WRITE(numout,*) '   ' 
     105         WRITE(numout,*) 'usr_def_nam  : read the user defined namelist (namusr_def) in namelist_cfg' 
     106         WRITE(numout,*) '~~~~~~~~~~~ ' 
     107         WRITE(numout,*) '   Namelist namusr_def : ICE_AGRIF test case' 
     108         WRITE(numout,*) '      horizontal resolution                    rn_dx  = ', rn_dx, ' meters' 
     109         WRITE(numout,*) '      horizontal resolution                    rn_dy  = ', rn_dy, ' meters' 
     110         WRITE(numout,*) '      ICE_AGRIF domain = 300 km x 300Km x 1 grid-point ' 
     111         WRITE(numout,*) '         LX [km]: ', zlx 
     112         WRITE(numout,*) '         LY [km]: ', zly 
     113         WRITE(numout,*) '         resulting global domain size :        jpiglo = ', kpi 
     114         WRITE(numout,*) '                                               jpjglo = ', kpj 
     115         WRITE(numout,*) '                                               jpkglo = ', kpk 
     116         WRITE(numout,*) '         Coriolis:', ln_corio 
     117         WRITE(numout,*) '   ' 
     118         WRITE(numout,*) '   Lateral boundary condition of the global domain' 
     119         WRITE(numout,*) '      ICE_AGRIF : bi-periodic basin            jperio = ', kperio 
    120120      ENDIF 
    121 #endif 
    122       ! 
    123       WRITE(numout,*) '   ' 
    124       WRITE(numout,*) '   Lateral boundary condition of the global domain' 
    125       WRITE(numout,*) '      ICE_AGRIF : bi-periodic basin               jperio = ', kperio 
    126121      ! 
    127122   END SUBROUTINE usr_def_nam 
Note: See TracChangeset for help on using the changeset viewer.