Merge remote-tracking branch 'origin/release-v4.5.2'
[WRF.git] / var / da / da_define_structures / da_allocate_observations_chem_sfc.inc
blobfb3d42cd238add4f351dd553c950061c20fe82b5
1 subroutine da_allocate_observations_chem_sfc (iv)
3    !---------------------------------------------------------------------------
4    ! Purpose: Allocate components of observation structure.
5    !---------------------------------------------------------------------------
7    implicit none
9    type (iv_type), intent(inout) :: iv     ! Observation structure.
11    integer :: i
13    if (trace_use) call da_trace_entry("da_allocate_observations_chem_sfc")
15    if (iv%info(chemic_surf)%nlocal > 0) allocate(iv%chemic_surf(1:iv%info(chemic_surf)%nlocal))
17    call da_allocate_obs_info(iv,chemic_surf)
19    if (trace_use) call da_trace_exit("da_allocate_observations_chem_sfc")
21 end subroutine da_allocate_observations_chem_sfc