1 subroutine da_calc_mu_uv (mu, mub, muu, muv, &
6 integer, intent(in) :: ids, ide, jds, jde
8 real, dimension(ids:ide, jds:jde), intent(in ) :: mu, mub
10 real, dimension(ids:ide+1, jds:jde ), intent( out) :: muu
11 real, dimension(ids:ide , jds:jde+1), intent( out) :: muv
13 real, dimension(ids-1:ide+1, jds-1:jde+1) :: mut
19 mut(i,j) = mu(i,j)+mub(i,j)
22 mut(ids-1,j) = mut(ids,j)
23 mut(ide+1,j) = mut(ide,j)
27 mut(i,jds-1)=mut(i,jds)
28 mut(i,jde+1)=mut(i,jde)
33 muu(i,j) = 0.5*(mut(i,j)+mut(i-1,j))
39 muv(i,j) = 0.5*(mut(i,j)+mut(i,j-1))
43 end subroutine da_calc_mu_uv