1 subroutine da_transfer_wrftoxb_chem(grid)
3 !---------------------------------------------------------------------------
4 ! Purpose: Transfers fields from WRF to first guess structure.
5 ! Updated for Analysis on Arakawa-C grid
6 ! Author: Syed RH Rizvi, MMM/ESSL/NCAR, Date: 10/22/2008
8 ! Purpose: Transfers Chem fields from WRF to first guess structure.
9 ! Author: Wei Sun, MMM/NCAR, Date: 02/11/2019
10 !---------------------------------------------------------------------------
14 type(domain), intent(inout) :: grid
16 integer :: ic, i, j, k, ij
18 if (trace_use) call da_trace_entry("da_transfer_wrftoxb_chem")
21 !$OMP PRIVATE ( ic, ij, i, j, k )
22 do ij = 1 , grid%num_tiles
24 ! Need to ensure scaling factors never drop to zero, which could happen if 4D-Var increment is too large
25 do ic = PARAM_FIRST_SCALAR, num_chem
26 do j=grid%j_start(ij),grid%j_end(ij)
29 grid%xbchem%chem_ic(i,j,k,ic) = grid%chem(i,j,k,ic)
39 #include "HALO_CHEM_XB.inc"
42 if (trace_use) call da_trace_exit("da_transfer_wrftoxb_chem")
44 end subroutine da_transfer_wrftoxb_chem