- Timestamp:
- 2013-02-28T14:31:33+01:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2013/dev_r3411_CNRS4_IOCRS/NEMOGCM/NEMO/OPA_SRC/CRS/crs_dom.F90
r3809 r3823 8 8 !!---------------------------------------------------------------------- 9 9 USE par_oce 10 USE dom_oce, ONLY: nperio, narea, npolj, nlci, nlcj, nldi, nldj, nlei, nlej 10 USE dom_oce 11 USE in_out_manager 11 12 12 13 IMPLICIT NONE … … 14 15 15 16 16 17 PUBLIC crs_dom_alloc ! Called from crsini.F90 17 18 PUBLIC dom_grid_glo 18 PUBLIC dom_grid_crs 19 PUBLIC dom_grid_crs 19 20 20 21 ! Domain variables … … 26 27 jpj_full !: 2nd dimension of local parent grid domain 27 28 29 INTEGER :: nistart, njstart 30 INTEGER :: niend , njend 31 28 32 INTEGER :: jpi_crsm1, jpj_crsm1 !: loop indices 29 33 INTEGER :: jpiglo_crsm1, jpjglo_crsm1 !: loop indices … … 31 35 INTEGER :: npolj_full, npolj_crs !: north fold mark 32 36 INTEGER :: jpiglo_full, jpjglo_full !: jpiglo / jpjglo 33 INTEGER :: npiglo, npjglo !: jpjglo37 INTEGER :: npiglo, npjglo !: jpjglo 34 38 INTEGER :: nlci_full, nlcj_full !: i-, j-dimension of local or sub domain on parent grid 35 39 INTEGER :: nldi_full, nldj_full !: starting indices of internal sub-domain on parent grid … … 43 47 INTEGER :: nimpp_full, njmpp_full !: global position of point (1,1) of subdomain on parent grid 44 48 INTEGER :: nimpp_crs, njmpp_crs !: set to 1,1 for now . Valid only for monoproc 45 46 47 INTEGER, DIMENSION(:), ALLOCATABLE :: mis_crs, mie_crs, mjs_crs, mje_crs 48 ! starting and ending indices of parent subset 49 INTEGER :: nreci_full, nrecj_full 50 INTEGER :: nreci_crs, nrecj_crs 51 !cc 52 INTEGER :: noea_full, nowe_full !: index of the local neighboring processors in 53 INTEGER :: noso_full, nono_full !: east, west, south and north directions 54 INTEGER :: npne_full, npnw_full !: index of north east and north west processor 55 INTEGER :: npse_full, npsw_full !: index of south east and south west processor 56 INTEGER :: nbne_full, nbnw_full !: logical of north east & north west processor 57 INTEGER :: nbse_full, nbsw_full !: logical of south east & south west processor 58 INTEGER :: nidom_full !: ??? 59 INTEGER :: nproc_full !:number for local processor 60 INTEGER :: nbondi_full, nbondj_full !: mark of i- and j-direction local boundaries 61 INTEGER :: noea_crs, nowe_crs !: index of the local neighboring processors in 62 INTEGER :: noso_crs, nono_crs !: east, west, south and north directions 63 INTEGER :: npne_crs, npnw_crs !: index of north east and north west processor 64 INTEGER :: npse_crs, npsw_crs !: index of south east and south west processor 65 INTEGER :: nbne_crs, nbnw_crs !: logical of north east & north west processor 66 INTEGER :: nbse_crs, nbsw_crs !: logical of south east & south west processor 67 INTEGER :: nidom_crs !: ??? 68 INTEGER :: nproc_crs !:number for local processor 69 INTEGER :: nbondi_crs, nbondj_crs !: mark of i- and j-direction local boundaries 70 71 72 INTEGER, DIMENSION(:), ALLOCATABLE :: mis_crs, mie_crs ! starting and ending i-indices of parent subset 73 INTEGER, DIMENSION(:), ALLOCATABLE :: mjs_crs, mje_crs ! starting and ending j-indices of parent subset 49 74 INTEGER :: mxbinctr, mybinctr ! central point in grid box 50 75 … … 135 160 !!------------------------------------------------------------------- 136 161 !! Local variables 137 INTEGER, DIMENSION(1 5) :: ierr162 INTEGER, DIMENSION(17) :: ierr 138 163 139 164 ierr(:) = 0 … … 206 231 ALLOCATE( nmln_crs(jpi_crs,jpj_crs) , hmld_crs(jpi_crs,jpj_crs) , & 207 232 & hmlp_crs(jpi_crs,jpj_crs) , hmlpt_crs(jpi_crs,jpj_crs) , STAT=ierr(14) ) 208 209 233 210 234 crs_dom_alloc = MAXVAL(ierr) 211 235 … … 227 251 228 252 npolj = npolj_full 229 jpnij = jpnij_full230 narea = narea_full231 253 jpiglo = jpiglo_full 232 254 jpjglo = jpjglo_full 233 255 256 nlci = nlci_full 234 257 nlcj = nlcj_full 235 nlci = nlci_full236 258 nldi = nldi_full 259 nldj = nldj_full 237 260 nlei = nlei_full 238 261 nlej = nlej_full 239 240 nldj = nldj_full 262 nimpp = nimpp_full 263 njmpp = njmpp_full 264 241 265 242 266 END SUBROUTINE dom_grid_glo … … 257 281 258 282 npolj_full = npolj 259 jpnij_full = jpnij260 narea_full = narea261 283 jpiglo_full = jpiglo 262 284 jpjglo_full = jpjglo … … 265 287 nlci_full = nlci 266 288 nldi_full = nldi 289 nldj_full = nldj 267 290 nlei_full = nlei 268 291 nlej_full = nlej 269 nldj_full = nldj 270 292 nimpp_full = nimpp 293 njmpp_full = njmpp 294 ! 271 295 ! Switch to coarse grid domain 272 296 jpi = jpi_crs … … 277 301 278 302 npolj = npolj_crs 279 jpnij = jpnij_crs280 narea = narea_crs281 303 jpiglo = jpiglo_crs 282 304 jpjglo = jpjglo_crs 305 283 306 284 307 nlci = nlci_crs … … 287 310 nlei = nlei_crs 288 311 nlej = nlej_crs 289 290 312 nldj = nldj_crs 291 313 nimpp = nimpp_crs 314 njmpp = njmpp_crs 315 ! 292 316 END SUBROUTINE dom_grid_crs 317 293 318 !!====================================================================== 294 319
Note: See TracChangeset
for help on using the changeset viewer.