1 subroutine da_wdt(h,w,terr,dt)
3 !----------------------------------------------------------------------
4 ! Purpose: Calculate DT
5 !----------------------------------------------------------------------
9 real, intent(in) :: h(kts:kte)
10 real, intent(out) :: dt(kts:kte)
11 real, intent(in) :: w(kts:kte+1)
12 real, intent(in) :: terr
16 if (trace_use) call da_trace_entry("da_wdt")
20 dt(k)=(h(k)-h(k-1))/w(k)
26 if (w(kts) >= 0.1) then
27 dt(kts)=(h(kts)-terr)/w(kts)
32 if (trace_use) call da_trace_exit("da_wdt")