Changeset 7437
- Timestamp:
- 2016-12-02T12:00:07+01:00 (8 years ago)
- Location:
- branches/2016/dev_merge_2016/NEMOGCM/NEMO/OPA_SRC/DYN
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2016/dev_merge_2016/NEMOGCM/NEMO/OPA_SRC/DYN/dynhpg.F90
r7421 r7437 461 461 IF(ll_tmp1.AND.ll_tmp2) THEN 462 462 zcpx(ji,jj) = 1.0_wp 463 wduflt(ji,jj) = 1.0_wp464 463 ELSE IF(ll_tmp3) THEN 465 464 ! no worries about sshn(ji+1,jj)-sshn(ji,jj) = 0, it won't happen ! here 466 465 zcpx(ji,jj) = ABS((sshn(ji+1,jj) + ht_0(ji+1,jj) - sshn(ji,jj) - ht_0(ji,jj)) / & 467 466 & (sshn(ji+1,jj) - sshn(ji,jj))) 468 wduflt(ji,jj) = 1.0_wp469 467 ELSE 470 468 zcpx(ji,jj) = 0._wp 471 wduflt(ji,jj) = 0.0_wp472 469 END IF 473 470 … … 479 476 IF(ll_tmp1.AND.ll_tmp2) THEN 480 477 zcpy(ji,jj) = 1.0_wp 481 wdvflt(ji,jj) = 1.0_wp482 478 ELSE IF(ll_tmp3) THEN 483 479 ! no worries about sshn(ji,jj+1)-sshn(ji,jj) = 0, it won't happen ! here 484 480 zcpy(ji,jj) = ABS((sshn(ji,jj+1) + ht_0(ji,jj+1) - sshn(ji,jj) - ht_0(ji,jj)) / & 485 481 & (sshn(ji,jj+1) - sshn(ji,jj))) 486 wdvflt(ji,jj) = 1.0_wp487 482 ELSE 488 483 zcpy(ji,jj) = 0._wp 489 wdvflt(ji,jj) = 0.0_wp490 484 END IF 491 485 END DO -
branches/2016/dev_merge_2016/NEMOGCM/NEMO/OPA_SRC/DYN/dynspg_ts.F90
r7430 r7437 155 155 REAL(wp), POINTER, DIMENSION(:,:) :: zhf 156 156 REAL(wp), POINTER, DIMENSION(:,:) :: zcpx, zcpy ! Wetting/Dying gravity filter coef. 157 REAL(wp), POINTER, DIMENSION(:,:) :: wduflt1, wdvflt1 ! Wetting/Dying velocity filter coef.158 157 !!---------------------------------------------------------------------- 159 158 ! … … 167 166 CALL wrk_alloc( jpi,jpj, zsshu_a, zsshv_a ) 168 167 CALL wrk_alloc( jpi,jpj, zhf ) 169 IF( ln_wd ) CALL wrk_alloc( jpi, jpj, zcpx, zcpy , wduflt1, wdvflt1)168 IF( ln_wd ) CALL wrk_alloc( jpi, jpj, zcpx, zcpy ) 170 169 ! 171 170 zmdi=1.e+20 ! missing data indicator for masking … … 381 380 IF( .NOT.ln_linssh ) THEN ! Variable volume : remove surface pressure gradient 382 381 IF( ln_wd ) THEN ! Calculating and applying W/D gravity filters 383 wduflt1(:,:) = 1.0_wp384 wdvflt1(:,:) = 1.0_wp385 382 DO jj = 2, jpjm1 386 383 DO ji = 2, jpim1 … … 398 395 ELSE 399 396 zcpx(ji,jj) = 0._wp 400 wduflt1(ji,jj) = 0.0_wp401 397 END IF 402 398 … … 414 410 ELSE 415 411 zcpy(ji,jj) = 0._wp 416 wdvflt1(ji,jj) = 0.0_wp417 412 ENDIF 418 413 … … 425 420 DO ji = 2, jpim1 426 421 zu_trd(ji,jj) = ( zu_trd(ji,jj) - grav * ( sshn(ji+1,jj ) - sshn(ji ,jj ) ) & 427 & * r1_e1u(ji,jj) ) * zcpx(ji,jj) * wduflt1(ji,jj)422 & * r1_e1u(ji,jj) ) * zcpx(ji,jj) 428 423 zv_trd(ji,jj) = ( zv_trd(ji,jj) - grav * ( sshn(ji ,jj+1) - sshn(ji ,jj ) ) & 429 & * r1_e2v(ji,jj) ) * zcpy(ji,jj) * wdvflt1(ji,jj)424 & * r1_e2v(ji,jj) ) * zcpy(ji,jj) 430 425 END DO 431 426 END DO … … 757 752 & + za2 * sshb_e(:,:) + za3 * sshbb_e(:,:) 758 753 IF( ln_wd ) THEN ! Calculating and applying W/D gravity filters 759 wduflt1(:,:) = 1._wp760 wdvflt1(:,:) = 1._wp761 754 DO jj = 2, jpjm1 762 755 DO ji = 2, jpim1 … … 774 767 ELSE 775 768 zcpx(ji,jj) = 0._wp 776 wduflt1(ji,jj) = 0._wp777 769 END IF 778 770 … … 790 782 ELSE 791 783 zcpy(ji,jj) = 0._wp 792 wdvflt1(ji,jj) = 0._wp793 784 END IF 794 785 END DO … … 1093 1084 CALL wrk_dealloc( jpi,jpj, zsshu_a, zsshv_a ) 1094 1085 CALL wrk_dealloc( jpi,jpj, zhf ) 1095 IF( ln_wd ) CALL wrk_dealloc( jpi, jpj, zcpx, zcpy , wduflt1, wdvflt1)1086 IF( ln_wd ) CALL wrk_dealloc( jpi, jpj, zcpx, zcpy ) 1096 1087 ! 1097 1088 IF ( ln_diatmb ) THEN
Note: See TracChangeset
for help on using the changeset viewer.