- Timestamp:
- 2020-06-03T16:26:23+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
utils/tools_dev_r12970_AGRIF_CMEMS/DOMAINcfg/src/domain.F90
r12870 r13024 62 62 !! - 1D configuration, move Coriolis, u and v at T-point 63 63 !!---------------------------------------------------------------------- 64 INTEGER :: jk ! dummy loop indices 65 INTEGER :: iconf = 0 ! local integers 66 REAL(wp), POINTER, DIMENSION(:,:) :: z1_hu_0, z1_hv_0 67 INTEGER , DIMENSION(jpi,jpj) :: ik_top , ik_bot ! top and bottom ocean level 68 !!---------------------------------------------------------------------- 69 ! 70 ! IF( nn_timing == 1 ) CALL timing_start('dom_init') 64 71 ! 65 72 IF(lwp) THEN … … 71 78 ! !== Reference coordinate system ==! 72 79 ! 73 CALL dom_nam ! read namelist ( namrun, namdom ) 74 ! 75 CALL dom_hgr ! Horizontal mesh 76 ! 77 CALL dom_zgr ! Vertical mesh and bathymetry 78 ! 79 CALL dom_msk ! compute mask (needed by write_cfg) 80 ! 81 IF ( ln_domclo ) CALL dom_clo ! Closed seas and lake 80 CALL dom_nam ! read namelist ( namrun, namdom ) 81 ! CALL dom_clo ! Closed seas and lake 82 83 CALL dom_hgr ! Horizontal mesh 84 CALL dom_zgr( ik_top, ik_bot ) ! Vertical mesh and bathymetry 85 CALL dom_msk( ik_top, ik_bot ) ! Masks 86 ! 82 87 ! 83 88 CALL dom_ctl ! print extrema of masked scale factors 84 89 ! 90 #if ! defined key_agrif 85 91 CALL cfg_write ! create the configuration file 92 #endif 86 93 ! 87 94 END SUBROUTINE dom_init … … 103 110 & nn_stock, nn_write , ln_mskland , ln_clobber , nn_chunksz, nn_euler , & 104 111 & ln_cfmeta, ln_iscpl 105 NAMELIST/namdom/ nn_bathy, cn_topo, cn_bath, cn_lon, cn_lat, nn_interp, & 106 & rn_bathy , rn_e3zps_min, rn_e3zps_rat, nn_msh, rn_hmin, & 107 & rn_atfp , rn_rdt , ln_crs , jphgr_msh , & 112 ! NAMELIST/namdom/ nn_bathy, cn_topo, cn_bath, cn_lon, cn_lat, nn_interp, & 113 ! & rn_bathy , rn_e3zps_min, rn_e3zps_rat, nn_msh, rn_hmin, & 114 ! & rn_atfp , rn_rdt , ln_crs , jphgr_msh , & 115 ! & ppglam0, ppgphi0, ppe1_deg, ppe2_deg, ppe1_m, ppe2_m, & 116 ! & ppsur, ppa0, ppa1, ppkth, ppacr, ppdzmin, pphmax, ldbletanh, & 117 ! & ppa2, ppkth2, ppacr2 118 119 NAMELIST/namdom/ nn_bathy, cn_topo, cn_bath, cn_lon, cn_lat, rn_scale, nn_interp, & 120 & rn_bathy , rn_e3zps_min, rn_e3zps_rat, nn_msh, rn_hmin, & 121 & rn_atfp , rn_rdt , ln_crs , jphgr_msh , & 108 122 & ppglam0, ppgphi0, ppe1_deg, ppe2_deg, ppe1_m, ppe2_m, & 109 123 & ppsur, ppa0, ppa1, ppkth, ppacr, ppdzmin, pphmax, ldbletanh, & 110 124 & ppa2, ppkth2, ppacr2 111 112 113 125 114 126 INTEGER :: ios ! Local integer output status for namelist read … … 181 193 182 194 183 195 ! 196 cn_topo ='' 197 cn_bath ='' 198 cn_lon ='' 199 cn_lat ='' 200 rn_scale = 1. 184 201 185 202 REWIND( numnam_ref ) ! Namelist namdom in reference namelist : space & time domain (bathymetry, mesh, timestep) … … 193 210 IF(lwm) WRITE ( numond, namdom ) 194 211 ! 212 213 214 195 215 IF(lwp) THEN 196 216 WRITE(numout,*) … … 198 218 WRITE(numout,*) ' flag read/compute bathymetry nn_bathy = ', nn_bathy 199 219 IF( nn_bathy == 2 ) THEN 200 WRITE(numout,*) ' compute bathymetry from file cn_topo = ', cn_topo 220 WRITE(numout,*) ' compute bathymetry from file cn_topo = ' , cn_topo 221 WRITE(numout,*) ' bathymetry name in file cn_bath = ' , cn_bath 222 WRITE(numout,*) ' longitude name in file cn_lon = ' , cn_lon 223 WRITE(numout,*) ' latitude name in file cn_lat = ' , cn_lat 224 WRITE(numout,*) ' bathmetry scale factor rn_scale = ' , rn_scale 201 225 ENDIF 202 226 WRITE(numout,*) ' Depth (if =0 bathy=jpkm1) rn_bathy = ', rn_bathy … … 255 279 !!---------------------------------------------------------------------- 256 280 ! 281 #undef CHECK_DOM 282 #ifdef CHECK_DOM 257 283 IF(lk_mpp) THEN 258 284 CALL mpp_minloc( 'dom_ctl', e1t(:,:), tmask_i(:,:), ze1min, iloc ) … … 292 318 WRITE(numout,"(14x,'e2t mini: ',1f10.2,' at i = ',i5,' j= ',i5)") ze2min, iimi2, ijmi2 293 319 ENDIF 320 #endif 294 321 ! 295 322 ! check that all processes are still there... If some process have an error,
Note: See TracChangeset
for help on using the changeset viewer.