- Timestamp:
- 2019-07-22T14:52:29+02:00 (5 years ago)
- 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 81 81 ! 82 82 cd_cfg = 'ICE_AGRIF' ! name & resolution (not used) 83 kk_cfg = INT( rn_dx )83 kk_cfg = NINT( rn_dx ) 84 84 ! 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 90 89 kpi = nbcellsx + 2 + 2*nbghostcells 91 90 kpj = nbcellsy + 2 + 2*nbghostcells 92 91 ENDIF 93 #endif94 92 kpk = 1 95 93 ! … … 98 96 zlx = kpi*rn_dx*1.e-3 99 97 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 100 102 ! ! 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 120 120 ENDIF 121 #endif122 !123 WRITE(numout,*) ' '124 WRITE(numout,*) ' Lateral boundary condition of the global domain'125 WRITE(numout,*) ' ICE_AGRIF : bi-periodic basin jperio = ', kperio126 121 ! 127 122 END SUBROUTINE usr_def_nam
Note: See TracChangeset
for help on using the changeset viewer.