1 subroutine da_togrid (x, ib, ie, i, dx, dxm)
3 !-----------------------------------------------------------------------
4 ! Purpose: Transfer obs. x to grid i and calculate its
5 ! distance to grid i and i+1
6 !-----------------------------------------------------------------------
11 integer, intent(in) :: ib, ie
12 real, intent(out) :: dx, dxm
13 integer, intent(out) :: i
15 if (trace_use_dull) call da_trace_entry("da_togrid")
21 else if (i >= ie) then
28 if (trace_use_dull) call da_trace_exit("da_togrid")
30 end subroutine da_togrid