Changeset 354 for trunk/NEMO
- Timestamp:
- 2005-12-12T16:56:48+01:00 (19 years ago)
- Location:
- trunk/NEMO/OFF_SRC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NEMO/OFF_SRC/DOM/domrea.F90
r343 r354 128 128 CALL restini( clnam0, jpidta , jpjdta , glamt, gphit, & ! create 'mesh_mask.nc' file 129 129 & jpk , gdept , trim(clnam0) , & ! in unit inum0 130 & itime , zdate0, rdt , inum0 130 & itime , zdate0, rdt , inum0, domain_id=nidom ) 131 131 inum2 = inum0 ! put all the informations 132 132 inum3 = inum0 ! in unit inum0 … … 141 141 CALL restini( clnam1, jpidta , jpjdta , glamt, gphit, & ! create 'mesh.nc' file 142 142 & jpk , gdept , trim(clnam1) , & ! in unit inum1 143 & itime , zdate0, rdt , inum1 143 & itime , zdate0, rdt , inum1, domain_id=nidom ) 144 144 CALL restini( clnam2, jpidta , jpjdta , glamt, gphit, & ! create 'mask.nc' file 145 145 & jpk , gdept , trim(clnam2) , & ! in unit inum2 146 & itime , zdate0, rdt , inum2 146 & itime , zdate0, rdt , inum2, domain_id=nidom ) 147 147 inum3 = inum1 ! put mesh informations 148 148 inum4 = inum1 ! in unit inum1 … … 157 157 CALL restini( clnam3, jpidta , jpjdta , glamt, gphit, & ! create 'mesh_hgr.nc' file 158 158 & jpk , gdept , trim(clnam3) , & ! in unit inum3 159 & itime , zdate0, rdt , inum3 159 & itime , zdate0, rdt , inum3, domain_id=nidom ) 160 160 CALL restini( clnam4, jpidta , jpjdta , glamt, gphit, & ! create 'mesh_zgr.nc' file 161 161 & jpk , gdept , trim(clnam4) , & ! in unit inum4 162 & itime , zdate0, rdt , inum4 162 & itime , zdate0, rdt , inum4, domain_id=nidom ) 163 163 CALL restini( clnam2, jpidta , jpjdta , glamt, gphit, & ! create 'mask.nc' file 164 164 & jpk , gdept , trim(clnam2) , & ! in unit inum2 165 & itime , zdate0, rdt , inum2 )165 & itime , zdate0, rdt , inum2, domain_id=nidom ) 166 166 167 167 END SELECT -
trunk/NEMO/OFF_SRC/mppini.F90
r325 r354 15 15 USE in_out_manager ! I/O Manager 16 16 USE lib_mpp ! distribued memory computing library 17 USE ioipsl 17 18 18 19 IMPLICIT NONE … … 63 64 nbondi = 2 64 65 nbondj = 2 66 nidom = FLIO_DOM_NONE 67 65 68 IF(lwp) THEN 66 69 WRITE(numout,*) … … 498 501 !! 9.0 ! 04-03 (G. Madec) MPP-IOIPSL 499 502 !!---------------------------------------------------------------------- 500 USE ioipsl 501 INTEGER, DIMENSION(4) :: & 502 iglo, iloc, iabsf, iabsl, ihals, ihale ! ??? 503 !!---------------------------------------------------------------------- 503 !! Local declarations 504 505 INTEGER, DIMENSION(2) :: & 506 iglo, iloc, iabsf, iabsl, ihals, ihale, idid 507 INTEGER :: & 508 inbondi, inbondj 509 !!---------------------------------------------------------------------- 510 511 ! The domain is splitted only horizontally along i- or/and j- direction 512 ! So we need at the most only 1D arrays with 2 elements 504 513 iglo(1) = jpiglo 505 514 iglo(2) = jpjglo 506 iglo(3) = jpk507 iglo(4) = 1508 515 iloc(1) = nlci 509 516 iloc(2) = nlcj 510 iloc(3) = jpk511 iloc(4) = 1512 517 iabsf(1) = nimppt(narea) 513 518 iabsf(2) = njmppt(narea) 514 iabsf(3) = 1515 iabsf(4) = 1516 519 iabsl(:) = iabsf(:) + iloc(:) - 1 517 520 ihals(1) = jpreci 518 521 ihals(2) = jprecj 519 ihals(3) = 0520 ihals(4) = 0521 522 ihale(1) = jpreci 522 523 ihale(2) = jprecj 523 ihale(3) = 0 524 ihale(4) = 0 525 IF( nbondi == -1 .OR. nbondi == 2 ) ihals(1) = 0 526 IF( nbondi == 1 .OR. nbondi == 2 ) ihale(1) = 0 527 IF( nbondj == -1 .OR. nbondj == 2 ) ihals(2) = 0 528 IF( nbondj == 1 .OR. nbondj == 2 ) ihale(2) = 0 524 idid(1) = 1 525 idid(2) = 2 526 527 inbondj = -1 ! general case 528 IF( narea > jpni ) inbondj = 0 ! first row of processor 529 IF( narea > (jpnj-1)*jpni ) inbondj = 1 ! last row of processor 530 IF( jpnj == 1 ) inbondj = 2 ! one processor only in j-direction 531 IF( inbondj == -1 .OR. inbondj == 2 ) ihals(2) = 0 532 IF( inbondj == 1 .OR. inbondj == 2 ) ihale(2) = 0 533 534 inbondi = 0 ! 535 IF( MOD( narea, jpni ) == 1 ) inbondi = -1 ! 536 IF( MOD( narea, jpni ) == 0 ) inbondi = 1 ! 537 IF( jpni == 1 ) inbondi = 2 ! one processor only in i-direction 538 IF( inbondi == -1 .OR. inbondi == 2 ) ihals(1) = 0 539 IF( inbondi == 1 .OR. inbondi == 2 ) ihale(1) = 0 540 541 529 542 IF(lwp) THEN 530 WRITE(numout,*) 'mpp_init_ioipsl : iloc = ', iloc (1), iloc (2) , iloc (3), iloc (4)531 WRITE(numout,*) '~~~~~~~~~~~~~~~ iabsf = ', iabsf(1), iabsf(2) , iabsf(3), iabsf(4)532 WRITE(numout,*) ' ihals = ', ihals(1), ihals(2) , ihals(3), ihals(4)533 WRITE(numout,*) ' ihale = ', ihale(1), ihale(2) , ihale(3), ihale(4)534 ENDIF 535 536 CALL ioipsl_inimpp( jpnij, nproc, iglo, iloc, iabsf, iabsl, ihals, ihale)543 WRITE(numout,*) 'mpp_init_ioipsl : iloc = ', iloc (1), iloc (2) 544 WRITE(numout,*) '~~~~~~~~~~~~~~~ iabsf = ', iabsf(1), iabsf(2) 545 WRITE(numout,*) ' ihals = ', ihals(1), ihals(2) 546 WRITE(numout,*) ' ihale = ', ihale(1), ihale(2) 547 ENDIF 548 549 CALL flio_dom_set ( jpnij, nproc, idid, iglo, iloc, iabsf, iabsl, ihals, ihale, 'BOX', nidom) 537 550 538 551 END SUBROUTINE mpp_init_ioipsl
Note: See TracChangeset
for help on using the changeset viewer.