16 integer,
intent(in) :: nx
17 integer,
intent(in) :: ny
18 real(kind=kind_real),
intent(inout) :: u(nx,ny,2)
19 real(kind=kind_real),
intent(inout) :: x(nx,ny,2)
20 real(kind=kind_real),
intent(in) :: deltay
22 x(:,2:ny ,:) = x(:,2:ny ,:) - (0.5_kind_real/deltay)*u(:,1:ny-1,:)
23 x(:,1:ny-1,:) = x(:,1:ny-1,:) + (0.5_kind_real/deltay)*u(:,2:ny ,:)
24 u(:,:,:) = 0.0_kind_real
subroutine zonal_wind_ad(u, x, nx, ny, deltay)
Calculate zonal wind - Adjoint.