14 subroutine zonal_wind (u,x,x_north,x_south,nx,ny,deltay)
21 integer,
intent(in) :: nx
22 integer,
intent(in) :: ny
23 real(kind=kind_real),
intent(out) :: u(nx,ny,2)
24 real(kind=kind_real),
intent(in) :: x(nx,ny,2)
25 real(kind=kind_real),
intent(in) :: x_north(2)
26 real(kind=kind_real),
intent(in) :: x_south(2)
27 real(kind=kind_real),
intent(in) :: deltay
29 u(:,2:ny ,:) = (0.5_kind_real/deltay)*x(:,1:ny-1,:)
30 u(:,1 ,1) = (0.5_kind_real/deltay)*x_south(1)
31 u(:,1 ,2) = (0.5_kind_real/deltay)*x_south(2)
32 u(:,1:ny-1,:) = u(:,1:ny-1,:) - (0.5_kind_real/deltay)*x(:,2:ny ,:)
33 u(:,ny ,1) = u(:,ny ,1) - (0.5_kind_real/deltay)*x_north(1)
34 u(:,ny ,2) = u(:,ny ,2) - (0.5_kind_real/deltay)*x_north(2)
subroutine zonal_wind(u, x, x_north, x_south, nx, ny, deltay)
Calculate zonal wind component from the streamfunction.