Ticket #105: bkpp.patch
File bkpp.patch, 2.9 KB (added by , 18 years ago) |
---|
-
lmd_bkpp.F
73 73 & OCEAN(ng) % u, & 74 74 & OCEAN(ng) % v, & 75 75 & OCEAN(ng) % pden, & 76 & FORCES(ng) % srflx, & 76 77 & FORCES(ng) % btflx, & 77 78 & FORCES(ng) % bustr, & 78 79 & FORCES(ng) % bvstr, & … … 98 99 # endif 99 100 & f, h, Hz, z_r, z_w, & 100 101 & u, v, pden, & 101 & btflx, bustr, bvstr,&102 & srflx, btflx, bustr, bvstr, & 102 103 & alpha, & 103 104 # ifdef SALINITY 104 105 & beta, & … … 136 137 real(r8), intent(in) :: u(LBi:,LBj:,:,:) 137 138 real(r8), intent(in) :: v(LBi:,LBj:,:,:) 138 139 real(r8), intent(in) :: pden(LBi:,LBj:,:) 140 real(r8), intent(in) :: srflx(LBi:,LBj:) 139 141 real(r8), intent(in) :: btflx(LBi:,LBj:,:) 140 142 real(r8), intent(in) :: bustr(LBi:,LBj:) 141 143 real(r8), intent(in) :: bvstr(LBi:,LBj:) … … 161 163 real(r8), intent(in) :: u(LBi:UBi,LBj:UBj,N(ng),3) 162 164 real(r8), intent(in) :: v(LBi:UBi,LBj:UBj,N(ng),3) 163 165 real(r8), intent(in) :: pden(LBi:UBi,LBj:UBj,N(ng)) 166 real(r8), intent(in) :: srflx(LBi:UBi,LBj:UBj) 164 167 real(r8), intent(in) :: btflx(LBi:UBi,LBj:UBj,NT(ng)) 165 168 real(r8), intent(in) :: bustr(LBi:UBi,LBj:UBj) 166 169 real(r8), intent(in) :: bvstr(LBi:UBi,LBj:UBj) … … 299 302 # else 300 303 Bo(i,j)=g*alpha(i,j)*btflx(i,j,itemp) 301 304 # endif 302 Bosol(i,j)= 0.0_r8305 Bosol(i,j)=g*alpha(i,j)*srflx(i,j) 303 306 END DO 304 307 END DO 305 308 ! … … 565 568 & NghostPoints, EWperiodic, NSperiodic, & 566 569 & hbbl) 567 570 # endif 571 ! 572 ! Shapiro filter on boundary layer thickness 573 ! 574 DO j=Jstr,Jend 575 DO i=Istr,Iend 576 bl_dpth(i,j)=hbbl(i,j)-z_w(i,j,0) 577 END DO 578 END DO 568 579 CALL shapiro2d_tile (ng, iNLM, Istr, Iend, Jstr, Jend, & 569 580 & LBi, UBi, LBj, UBj, & 570 581 # ifdef MASKING 571 582 & rmask, & 572 583 # endif 573 & hbbl) 584 & bl_dpth) 585 DO j=Jstr,Jend 586 DO i=Istr,Iend 587 hbbl(i,j)=bl_dpth(i,j)+z_w(i,j,0) 588 END DO 589 END DO 574 590 # endif 575 591 ! 576 592 ! Apply gradient or periodic boundary conditions.