- Timestamp:
- 2017-12-22T16:45:51+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2017/dev_merge_2017/NEMOGCM/TOOLS/NESTING/src/agrif_partial_steps.f90
r9149 r9166 352 352 IF ( MOD(irafx,2) .EQ. 0 ) diff = 1 353 353 ! 354 bornex = nbghostcellsfine + CEILING(irafx/2.0) + diff - irafx355 borney = nbghostcellsfine + CEILING(irafy/2.0) + diff - irafy356 bornex2 = nxfin - (nbghostcellsfine-1)- irafx - CEILING(irafx/2.0)357 borney2 = nyfin - (nbghostcellsfine-1)- irafy - CEILING(irafy/2.0)354 bornex = nbghostcellsfine + 1 + CEILING(irafx/2.0) + diff - irafx 355 borney = nbghostcellsfine + 1 + CEILING(irafy/2.0) + diff - irafy 356 bornex2 = nxfin - nbghostcellsfine - irafx - CEILING(irafx/2.0) 357 borney2 = nyfin - nbghostcellsfine - irafy - CEILING(irafy/2.0) 358 358 ! 359 359 ! … … 361 361 ! 362 362 363 CALL correct_level( gdepwchild,ParentGrid,gdepw,e3t,1, 3+connectionsize*irafx-1, &363 CALL correct_level( gdepwchild,ParentGrid,gdepw,e3t,1,2+nbghostcellsfine+connectionsize*irafx-1, & 364 364 1,nyfin) 365 365 … … 368 368 ! 369 369 370 CALL correct_level( gdepwchild,ParentGrid,gdepw,e3t,nxfin- 2-(connectionsize*irafx-1),nxfin, &370 CALL correct_level( gdepwchild,ParentGrid,gdepw,e3t,nxfin-1-nbghostcellsfine-(connectionsize*irafx-1),nxfin, & 371 371 1,nyfin) 372 372 … … 376 376 377 377 CALL correct_level( gdepwchild,ParentGrid,gdepw,e3t,1,nxfin, & 378 nyfin- 2-(connectionsize*irafy-1),nyfin )378 nyfin-1 - nbghostcellsfine -(connectionsize*irafy-1),nyfin ) 379 379 380 380 ! … … 382 382 ! 383 383 CALL correct_level( gdepwchild,ParentGrid,gdepw,e3t,1,nxfin, & 384 1, 3+connectionsize*irafy-1 )384 1,2+nbghostcellsfine+connectionsize*irafy-1 ) 385 385 386 386 ! … … 430 430 dyfin = 1./irafy 431 431 432 ptx = 3433 pty = 3432 ptx = 1 + nbghostcellsfine + 1 433 pty = 1 + nbghostcellsfine + 1 434 434 435 435 xmin = (imin-1) * 1 … … 526 526 DO ii = i-FLOOR(irafx/2.0)+diff,i+FLOOR(irafx/2.0) 527 527 x = ii-i - xdiff/2. 528 val = parentgrid%gdepw_ps(ipt,jpt)+slopex * x528 !! val = parentgrid%gdepw_ps(ipt,jpt)+slopex * x 529 529 !! chanut: uncomment this to get nearest neighbor interpolation 530 !!val = parentgrid%gdepw_ps(ipt,jpt)530 val = parentgrid%gdepw_ps(ipt,jpt) 531 531 gdepwtemp(ii,j) = val 532 532 IF (gdepwtemp(ii,j) < mindepth) THEN … … 585 585 DO jj = j-FLOOR(irafy/2.0)+diff,j+FLOOR(irafy/2.0) 586 586 y = jj-j - xdiff/2. 587 val = gdepwtemp(i,j) + slopey*y587 !! val = gdepwtemp(i,j) + slopey*y 588 588 !! chanut: uncomment this to get nearest neighbor interpolation 589 !!val = gdepwtemp(i,j)589 val = gdepwtemp(i,j) 590 590 gdepwtemp(i,jj) = val 591 591 ENDDO
Note: See TracChangeset
for help on using the changeset viewer.