Changeset 13266 for NEMO/branches/2020/dev_r12558_HPC-08_epico_Extra_Halo/src/OCE/LBC/mpp_nfd_generic.h90
- Timestamp:
- 2020-07-08T14:49:37+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/branches/2020/dev_r12558_HPC-08_epico_Extra_Halo/src/OCE/LBC/mpp_nfd_generic.h90
r13252 r13266 90 90 INTEGER :: ii1, ii2, ij1, ij2 91 91 INTEGER :: ipimax, i0max 92 INTEGER :: ij, iproc, ipni 92 INTEGER :: ij, iproc, ipni, ijnr 93 93 INTEGER, DIMENSION (jpmaxngh) :: ml_req_nf ! for mpi_isend when avoiding mpi_allgather 94 94 INTEGER :: ml_err ! for mpi_isend when avoiding mpi_allgather … … 298 298 i0max = jpimax - 2 * nn_hls 299 299 ibuffsize = i0max * ipj * ipk * ipl * ipf 300 ALLOCATE( znorthloc(i0max,ipj,ipk,ipl,ipf), znorthglo(i0max,ipj,ipk,ipl,ipf, jpni) )300 ALLOCATE( znorthloc(i0max,ipj,ipk,ipl,ipf), znorthglo(i0max,ipj,ipk,ipl,ipf,ndim_rank_north) ) 301 301 ! 302 302 DO jf = 1, ipf ; DO jl = 1, ipl ; DO jk = 1, ipk ! put in znorthloc ipj j-lines of ptab … … 307 307 znorthloc(ji,jj,jk,jl,jf) = ARRAY_IN(ii2,ij2,jk,jl,jf) 308 308 END DO 309 DO ji = Ni e0+1, i0max309 DO ji = Ni_0+1, i0max 310 310 znorthloc(ji,jj,jk,jl,jf) = HUGE(0._wp) ! avoid sending uninitialized values (make sure we don't use it) 311 311 END DO … … 322 322 ! 323 323 ! need to fill only the first ipj lines of ztabglo as lbc_nfd don't use the last nn_hls lines 324 ijnr = 0 324 325 DO jr = 1, jpni ! recover the global north array 325 326 iproc = nfproc(jr) … … 352 353 ! 353 354 ELSE 355 ijnr = ijnr + 1 354 356 DO jf = 1, ipf ; DO jl = 1, ipl ; DO jk = 1, ipk 355 357 DO jj = 1, ipj 356 358 DO ji = 1, ipi 357 359 ii1 = impp + nn_hls + ji - 1 ! corresponds to mig(nn_hls + ji) but for subdomain iproc 358 ztabglo(ii1,jj,jk,jl,jf) = znorthglo(ji,jj,jk,jl,jf, jr)360 ztabglo(ii1,jj,jk,jl,jf) = znorthglo(ji,jj,jk,jl,jf,ijnr) 359 361 END DO 360 362 END DO
Note: See TracChangeset
for help on using the changeset viewer.