FV3 Bundle
zonal_wind_tl.f90
Go to the documentation of this file.
1 ! (C) Copyright 2009-2016 ECMWF.
2 !
3 ! This software is licensed under the terms of the Apache Licence Version 2.0
4 ! which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
5 ! In applying this licence, ECMWF does not waive the privileges and immunities
6 ! granted to it by virtue of its status as an intergovernmental organisation nor
7 ! does it submit to any jurisdiction.
8 
9 !> Calculate zonal wind - Tangent Linear
10 
11 subroutine zonal_wind_tl (u,x,nx,ny,deltay)
12 
13 !--- calculate zonal wind component
14 
15 use kinds
16 implicit none
17 
18 integer, intent(in) :: nx !< Zonal grid dimension
19 integer, intent(in) :: ny !< Meridional grid dimension
20 real(kind=kind_real), intent(out) :: u(nx,ny,2) !< Zonal wind increment
21 real(kind=kind_real), intent(in) :: x(nx,ny,2) !< Streamfunction increment
22 real(kind=kind_real), intent(in) :: deltay !< Meridional grid spacing (non-dimensional)
23 
24 u(:,2:ny ,:) = (0.5_kind_real/deltay)*x(:,1:ny-1,:)
25 u(:,1 ,1) = 0.0_kind_real
26 u(:,1 ,2) = 0.0_kind_real
27 u(:,1:ny-1,:) = u(:,1:ny-1,:) - (0.5_kind_real/deltay)*x(:,2:ny ,:)
28 
29 end subroutine zonal_wind_tl
subroutine zonal_wind_tl(u, x, nx, ny, deltay)
Calculate zonal wind - Tangent Linear.