Merge remote-tracking branch 'origin/release-v4.5.2'
[WRF.git] / var / da / da_par_util / da_transpose_x2z.inc
blobdde7f582fbf874f64952e0f3e0cafc8af773704b
1 subroutine da_transpose_x2z (grid)
3    implicit none
5    type(domain), intent(inout)               :: grid
6    integer                                   :: ij, i, j, k
8    if (trace_use_dull) call da_trace_entry("da_transpose_x2z")
10 #ifdef DM_PARALLEL
11 #include "XPOSE_V1_x2z.inc"
12 #else
13    !$OMP PARALLEL DO &
14    !$OMP PRIVATE ( ij, i, j, k )
15    do ij = 1 , grid%num_tiles
16       do k = grid%xp%kds, grid%xp%kde
17          do j = grid%j_start(ij), grid%j_end(ij)
18             do i = grid%xp%ids, grid%xp%ide
19                grid%xp % v1z(i,j,k) = grid%xp % v1x(i,j,k)
20             end do
21          end do
22       end do
23    end do
24    !$OMP END PARALLEL DO
25 #endif
27    if (trace_use_dull) call da_trace_exit("da_transpose_x2z")
29 end subroutine da_transpose_x2z