!STARTOFREGISTRYGENERATEDINCLUDE 'inc/nest_interpdown_unpack.inc' ! ! WARNING This file is generated automatically by use_registry ! using the data base in the file named Registry. ! Do not edit. Your changes to this file will be lost. ! CALL rsl_lite_from_parent_info(pig,pjg,retval) DO while ( retval .eq. 1 ) IF ( SIZE(grid%xlat) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%xlat(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%xlong) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%xlong(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%lu_index) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%lu_index(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%var_sso) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%var_sso(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%t_max_p) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%t_max_p(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%ght_max_p) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%ght_max_p(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%max_p) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%max_p(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%t_min_p) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%t_min_p(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%ght_min_p) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%ght_min_p(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%min_p) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%min_p(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%erod) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%erosion_dim)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%erosion_dim grid%erod(pig,pjg,k) = xv(k) ENDDO ENDIF IF ( SIZE(grid%u_2) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg((((ckde-1))-(ckds)+1)*RWORDSIZE,xv) DO k = ckds,(ckde-1) grid%u_2(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%v_2) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg((((ckde-1))-(ckds)+1)*RWORDSIZE,xv) DO k = ckds,(ckde-1) grid%v_2(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%w_2) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((ckde)-(ckds)+1)*RWORDSIZE,xv) DO k = ckds,ckde grid%w_2(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%ph_2) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((ckde)-(ckds)+1)*RWORDSIZE,xv) DO k = ckds,ckde grid%ph_2(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%phb) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((ckde)-(ckds)+1)*RWORDSIZE,xv) DO k = ckds,ckde grid%phb(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%th_phy_m_t0) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg((((ckde-1))-(ckds)+1)*RWORDSIZE,xv) DO k = ckds,(ckde-1) grid%th_phy_m_t0(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%t_2) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg((((ckde-1))-(ckds)+1)*RWORDSIZE,xv) DO k = ckds,(ckde-1) grid%t_2(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%t_init) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg((((ckde-1))-(ckds)+1)*RWORDSIZE,xv) DO k = ckds,(ckde-1) grid%t_init(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%mu_2) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%mu_2(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%mub) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%mub(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%alb) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg((((ckde-1))-(ckds)+1)*RWORDSIZE,xv) DO k = ckds,(ckde-1) grid%alb(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%pb) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg((((ckde-1))-(ckds)+1)*RWORDSIZE,xv) DO k = ckds,(ckde-1) grid%pb(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%q2) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%q2(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%t2) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%t2(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%th2) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%th2(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%psfc) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%psfc(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%u10) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%u10(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%v10) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%v10(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%lpi) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%lpi(pig,pjg) = xv(1) ENDIF DO itrace = PARAM_FIRST_SCALAR, num_moist CALL rsl_lite_from_parent_msg((((ckde-1))-(ckds)+1)*RWORDSIZE,xv) DO k = ckds,(ckde-1) moist(pig,k,pjg,itrace) = xv(k) ENDDO ENDDO DO itrace = PARAM_FIRST_SCALAR, num_dfi_moist CALL rsl_lite_from_parent_msg((((ckde-1))-(ckds)+1)*RWORDSIZE,xv) DO k = ckds,(ckde-1) dfi_moist(pig,k,pjg,itrace) = xv(k) ENDDO ENDDO IF ( SIZE(grid%qvold) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg((((ckde-1))-(ckds)+1)*RWORDSIZE,xv) DO k = ckds,(ckde-1) grid%qvold(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%qnwfa2d) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%qnwfa2d(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%qnifa2d) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%qnifa2d(pig,pjg) = xv(1) ENDIF DO itrace = PARAM_FIRST_SCALAR, num_scalar CALL rsl_lite_from_parent_msg((((ckde-1))-(ckds)+1)*RWORDSIZE,xv) DO k = ckds,(ckde-1) scalar(pig,k,pjg,itrace) = xv(k) ENDDO ENDDO DO itrace = PARAM_FIRST_SCALAR, num_dfi_scalar CALL rsl_lite_from_parent_msg((((ckde-1))-(ckds)+1)*RWORDSIZE,xv) DO k = ckds,(ckde-1) dfi_scalar(pig,k,pjg,itrace) = xv(k) ENDDO ENDDO IF ( SIZE(grid%toposlpx) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%toposlpx(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%toposlpy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%toposlpy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%slope) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%slope(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%slp_azi) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%slp_azi(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%shdmax) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%shdmax(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%shdmin) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%shdmin(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%snoalb) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%snoalb(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%landusef) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%num_land_cat)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%num_land_cat grid%landusef(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%soilctop) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%num_soil_cat)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%num_soil_cat grid%soilctop(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%soilcbot) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%num_soil_cat)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%num_soil_cat grid%soilcbot(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%irrigation) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%irrigation(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%irr_rand_field) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%irr_rand_field(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%tslb) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%num_soil_layers)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%num_soil_layers grid%tslb(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%smois) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%num_soil_layers)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%num_soil_layers grid%smois(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%sh2o) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%num_soil_layers)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%num_soil_layers grid%sh2o(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%smcrel) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%num_soil_layers)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%num_soil_layers grid%smcrel(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%xice) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%xice(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%icedepth) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%icedepth(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%xicem) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%xicem(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%albsi) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%albsi(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%snowsi) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%snowsi(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%smstav) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%smstav(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%sfcrunoff) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%sfcrunoff(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%udrunoff) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%udrunoff(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%ivgtyp) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%ivgtyp(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%isltyp) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%isltyp(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%vegfra) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%vegfra(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%acgrdflx) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%acgrdflx(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%acsnow) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%acsnow(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%acrunoff) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%acrunoff(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%acsnom) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%acsnom(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%snow) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%snow(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%snowh) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%snowh(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%canwat) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%canwat(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%sstsk) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%sstsk(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%lake_depth) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%lake_depth(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%uoce) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%uoce(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%voce) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%voce(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%cha_coef) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%cha_coef(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%tsk_rural) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%tsk_rural(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%tr_urb2d) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%tr_urb2d(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%tgr_urb2d) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%tgr_urb2d(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%tb_urb2d) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%tb_urb2d(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%tg_urb2d) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%tg_urb2d(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%tc_urb2d) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%tc_urb2d(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%qc_urb2d) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%qc_urb2d(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%uc_urb2d) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%uc_urb2d(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%xxxr_urb2d) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%xxxr_urb2d(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%xxxb_urb2d) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%xxxb_urb2d(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%xxxg_urb2d) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%xxxg_urb2d(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%xxxc_urb2d) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%xxxc_urb2d(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%cmcr_urb2d) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%cmcr_urb2d(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%drelr_urb2d) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%drelr_urb2d(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%drelb_urb2d) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%drelb_urb2d(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%drelg_urb2d) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%drelg_urb2d(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%flxhumr_urb2d) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%flxhumr_urb2d(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%flxhumb_urb2d) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%flxhumb_urb2d(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%flxhumg_urb2d) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%flxhumg_urb2d(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%tgrl_urb3d) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%num_soil_layers)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%num_soil_layers grid%tgrl_urb3d(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%smr_urb3d) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%num_soil_layers)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%num_soil_layers grid%smr_urb3d(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%trl_urb3d) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%num_soil_layers)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%num_soil_layers grid%trl_urb3d(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%tbl_urb3d) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%num_soil_layers)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%num_soil_layers grid%tbl_urb3d(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%tgl_urb3d) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%num_soil_layers)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%num_soil_layers grid%tgl_urb3d(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%sh_urb2d) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%sh_urb2d(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%lh_urb2d) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%lh_urb2d(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%g_urb2d) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%g_urb2d(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%rn_urb2d) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%rn_urb2d(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%ts_urb2d) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%ts_urb2d(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%frc_urb2d) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%frc_urb2d(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%utype_urb2d) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%utype_urb2d(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%imperv) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%imperv(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%canfra) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%canfra(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%u10e) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%u10e(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%v10e) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%v10e(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%var2d) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%var2d(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%oc12d) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%oc12d(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%oa1) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%oa1(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%oa2) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%oa2(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%oa3) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%oa3(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%oa4) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%oa4(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%ol1) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%ol1(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%ol2) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%ol2(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%ol3) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%ol3(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%ol4) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%ol4(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%ctopo) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%ctopo(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%ctopo2) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%ctopo2(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%o3rad) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg((((ckde-1))-(ckds)+1)*RWORDSIZE,xv) DO k = ckds,(ckde-1) grid%o3rad(pig,k,pjg) = xv(k) ENDDO ENDIF DO itrace = PARAM_FIRST_SCALAR, num_aerod CALL rsl_lite_from_parent_msg((((ckde-1))-(ckds)+1)*RWORDSIZE,xv) DO k = ckds,(ckde-1) aerod(pig,k,pjg,itrace) = xv(k) ENDDO ENDDO DO itrace = PARAM_FIRST_SCALAR, num_aerocu CALL rsl_lite_from_parent_msg((((ckde-1))-(ckds)+1)*RWORDSIZE,xv) DO k = ckds,(ckde-1) aerocu(pig,k,pjg,itrace) = xv(k) ENDDO ENDDO IF ( SIZE(grid%f_ice_phy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg((((ckde-1))-(ckds)+1)*RWORDSIZE,xv) DO k = ckds,(ckde-1) grid%f_ice_phy(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%f_rain_phy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg((((ckde-1))-(ckds)+1)*RWORDSIZE,xv) DO k = ckds,(ckde-1) grid%f_rain_phy(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%f_rimef_phy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg((((ckde-1))-(ckds)+1)*RWORDSIZE,xv) DO k = ckds,(ckde-1) grid%f_rimef_phy(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%om_tmp) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%ocean_levels)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%ocean_levels grid%om_tmp(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%om_s) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%ocean_levels)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%ocean_levels grid%om_s(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%om_depth) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%ocean_levels)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%ocean_levels grid%om_depth(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%om_u) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%ocean_levels)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%ocean_levels grid%om_u(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%om_v) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%ocean_levels)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%ocean_levels grid%om_v(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%om_lat) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%om_lat(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%om_lon) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%om_lon(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%om_ml) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%om_ml(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%om_tini) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%ocean_levels)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%ocean_levels grid%om_tini(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%om_sini) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%ocean_levels)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%ocean_levels grid%om_sini(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%h_diabatic) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg((((ckde-1))-(ckds)+1)*RWORDSIZE,xv) DO k = ckds,(ckde-1) grid%h_diabatic(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%qv_diabatic) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg((((ckde-1))-(ckds)+1)*RWORDSIZE,xv) DO k = ckds,(ckde-1) grid%qv_diabatic(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%qc_diabatic) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg((((ckde-1))-(ckds)+1)*RWORDSIZE,xv) DO k = ckds,(ckde-1) grid%qc_diabatic(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%msft) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%msft(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%msfu) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%msfu(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%msfv) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%msfv(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%msftx) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%msftx(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%msfty) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%msfty(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%msfux) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%msfux(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%msfuy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%msfuy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%msfvx) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%msfvx(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%msfvx_inv) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%msfvx_inv(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%msfvy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%msfvy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%f) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%f(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%e) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%e(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%sina) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%sina(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%cosa) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%cosa(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%ht) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%ht(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%ht_shad) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%ht_shad(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%tsk) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%tsk(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%rainc) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%rainc(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%rainsh) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%rainsh(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%rainnc) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%rainnc(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%i_rainc) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%i_rainc(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%i_rainnc) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%i_rainnc(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%snownc) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%snownc(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%graupelnc) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%graupelnc(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%hailnc) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%hailnc(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%refl_10cm) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg((((ckde-1))-(ckds)+1)*RWORDSIZE,xv) DO k = ckds,(ckde-1) grid%refl_10cm(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%mskf_refl_10cm) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg((((ckde-1))-(ckds)+1)*RWORDSIZE,xv) DO k = ckds,(ckde-1) grid%mskf_refl_10cm(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%th_old) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg((((ckde-1))-(ckds)+1)*RWORDSIZE,xv) DO k = ckds,(ckde-1) grid%th_old(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%qv_old) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg((((ckde-1))-(ckds)+1)*RWORDSIZE,xv) DO k = ckds,(ckde-1) grid%qv_old(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%vmi3d) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg((((ckde-1))-(ckds)+1)*RWORDSIZE,xv) DO k = ckds,(ckde-1) grid%vmi3d(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%di3d) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg((((ckde-1))-(ckds)+1)*RWORDSIZE,xv) DO k = ckds,(ckde-1) grid%di3d(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%rhopo3d) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg((((ckde-1))-(ckds)+1)*RWORDSIZE,xv) DO k = ckds,(ckde-1) grid%rhopo3d(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%phii3d) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg((((ckde-1))-(ckds)+1)*RWORDSIZE,xv) DO k = ckds,(ckde-1) grid%phii3d(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%vmi3d_2) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg((((ckde-1))-(ckds)+1)*RWORDSIZE,xv) DO k = ckds,(ckde-1) grid%vmi3d_2(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%di3d_2) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg((((ckde-1))-(ckds)+1)*RWORDSIZE,xv) DO k = ckds,(ckde-1) grid%di3d_2(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%rhopo3d_2) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg((((ckde-1))-(ckds)+1)*RWORDSIZE,xv) DO k = ckds,(ckde-1) grid%rhopo3d_2(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%phii3d_2) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg((((ckde-1))-(ckds)+1)*RWORDSIZE,xv) DO k = ckds,(ckde-1) grid%phii3d_2(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%vmi3d_3) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg((((ckde-1))-(ckds)+1)*RWORDSIZE,xv) DO k = ckds,(ckde-1) grid%vmi3d_3(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%di3d_3) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg((((ckde-1))-(ckds)+1)*RWORDSIZE,xv) DO k = ckds,(ckde-1) grid%di3d_3(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%rhopo3d_3) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg((((ckde-1))-(ckds)+1)*RWORDSIZE,xv) DO k = ckds,(ckde-1) grid%rhopo3d_3(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%phii3d_3) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg((((ckde-1))-(ckds)+1)*RWORDSIZE,xv) DO k = ckds,(ckde-1) grid%phii3d_3(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%itype) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg((((ckde-1))-(ckds)+1)*RWORDSIZE,xv) DO k = ckds,(ckde-1) grid%itype(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%itype_2) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg((((ckde-1))-(ckds)+1)*RWORDSIZE,xv) DO k = ckds,(ckde-1) grid%itype_2(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%itype_3) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg((((ckde-1))-(ckds)+1)*RWORDSIZE,xv) DO k = ckds,(ckde-1) grid%itype_3(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%w_up) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg((((ckde-1))-(ckds)+1)*RWORDSIZE,xv) DO k = ckds,(ckde-1) grid%w_up(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%rthraten) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg((((ckde-1))-(ckds)+1)*RWORDSIZE,xv) DO k = ckds,(ckde-1) grid%rthraten(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%swdown) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%swdown(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%swdown2) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%swdown2(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%swdownc2) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%swdownc2(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%gsw) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%gsw(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%glw) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%glw(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%swnorm) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%swnorm(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%diffuse_frac) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%diffuse_frac(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%swddir) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%swddir(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%swddir2) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%swddir2(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%swddirc) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%swddirc(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%swddni) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%swddni(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%swddni2) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%swddni2(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%swddnic) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%swddnic(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%swddnic2) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%swddnic2(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%swddif) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%swddif(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%swddif2) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%swddif2(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%gx) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%gx(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%bx) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%bx(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%gg) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%gg(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%bb) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%bb(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%coszen_ref) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%coszen_ref(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%swdown_ref) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%swdown_ref(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%swddir_ref) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%swddir_ref(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%acswupt) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%acswupt(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%acswuptc) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%acswuptc(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%acswdnt) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%acswdnt(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%acswdntc) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%acswdntc(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%acswupb) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%acswupb(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%acswupbc) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%acswupbc(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%acswdnb) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%acswdnb(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%acswdnbc) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%acswdnbc(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%aclwupt) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%aclwupt(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%aclwuptc) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%aclwuptc(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%aclwdnt) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%aclwdnt(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%aclwdntc) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%aclwdntc(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%aclwupb) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%aclwupb(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%aclwupbc) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%aclwupbc(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%aclwdnb) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%aclwdnb(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%aclwdnbc) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%aclwdnbc(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%i_acswupt) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%i_acswupt(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%i_acswuptc) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%i_acswuptc(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%i_acswdnt) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%i_acswdnt(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%i_acswdntc) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%i_acswdntc(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%i_acswupb) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%i_acswupb(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%i_acswupbc) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%i_acswupbc(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%i_acswdnb) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%i_acswdnb(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%i_acswdnbc) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%i_acswdnbc(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%i_aclwupt) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%i_aclwupt(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%i_aclwuptc) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%i_aclwuptc(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%i_aclwdnt) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%i_aclwdnt(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%i_aclwdntc) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%i_aclwdntc(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%i_aclwupb) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%i_aclwupb(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%i_aclwupbc) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%i_aclwupbc(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%i_aclwdnb) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%i_aclwdnb(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%i_aclwdnbc) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%i_aclwdnbc(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%swupt) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%swupt(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%swuptc) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%swuptc(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%swuptcln) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%swuptcln(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%swdnt) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%swdnt(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%swdntc) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%swdntc(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%swdntcln) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%swdntcln(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%swupb) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%swupb(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%swupbc) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%swupbc(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%swupbcln) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%swupbcln(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%swdnb) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%swdnb(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%swdnbc) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%swdnbc(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%swdnbcln) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%swdnbcln(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%lwupt) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%lwupt(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%lwuptc) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%lwuptc(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%lwuptcln) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%lwuptcln(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%lwdnt) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%lwdnt(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%lwdntc) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%lwdntc(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%lwdntcln) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%lwdntcln(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%lwupb) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%lwupb(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%lwupbc) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%lwupbc(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%lwupbcln) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%lwupbcln(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%lwdnb) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%lwdnb(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%lwdnbc) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%lwdnbc(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%lwdnbcln) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%lwdnbcln(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%xlat_u) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%xlat_u(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%xlong_u) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%xlong_u(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%xlat_v) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%xlat_v(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%xlong_v) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%xlong_v(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%clat) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%clat(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%tsk_mosaic) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%mosaic_cat)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%mosaic_cat grid%tsk_mosaic(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%qsfc_mosaic) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%mosaic_cat)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%mosaic_cat grid%qsfc_mosaic(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%tslb_mosaic) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%mosaic_cat_soil)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%mosaic_cat_soil grid%tslb_mosaic(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%smois_mosaic) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%mosaic_cat_soil)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%mosaic_cat_soil grid%smois_mosaic(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%sh2o_mosaic) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%mosaic_cat_soil)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%mosaic_cat_soil grid%sh2o_mosaic(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%canwat_mosaic) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%mosaic_cat)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%mosaic_cat grid%canwat_mosaic(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%snow_mosaic) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%mosaic_cat)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%mosaic_cat grid%snow_mosaic(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%snowh_mosaic) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%mosaic_cat)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%mosaic_cat grid%snowh_mosaic(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%snowc_mosaic) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%mosaic_cat)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%mosaic_cat grid%snowc_mosaic(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%tr_urb2d_mosaic) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%mosaic_cat)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%mosaic_cat grid%tr_urb2d_mosaic(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%tb_urb2d_mosaic) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%mosaic_cat)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%mosaic_cat grid%tb_urb2d_mosaic(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%tg_urb2d_mosaic) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%mosaic_cat)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%mosaic_cat grid%tg_urb2d_mosaic(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%tc_urb2d_mosaic) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%mosaic_cat)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%mosaic_cat grid%tc_urb2d_mosaic(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%ts_urb2d_mosaic) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%mosaic_cat)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%mosaic_cat grid%ts_urb2d_mosaic(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%ts_rul2d_mosaic) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%mosaic_cat)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%mosaic_cat grid%ts_rul2d_mosaic(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%qc_urb2d_mosaic) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%mosaic_cat)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%mosaic_cat grid%qc_urb2d_mosaic(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%uc_urb2d_mosaic) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%mosaic_cat)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%mosaic_cat grid%uc_urb2d_mosaic(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%trl_urb3d_mosaic) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%mosaic_cat_soil)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%mosaic_cat_soil grid%trl_urb3d_mosaic(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%tbl_urb3d_mosaic) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%mosaic_cat_soil)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%mosaic_cat_soil grid%tbl_urb3d_mosaic(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%tgl_urb3d_mosaic) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%mosaic_cat_soil)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%mosaic_cat_soil grid%tgl_urb3d_mosaic(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%mosaic_cat_index) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%num_land_cat)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%num_land_cat grid%mosaic_cat_index(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%landusef2) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%num_land_cat)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%num_land_cat grid%landusef2(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%tmn) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%tmn(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%tyr) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%tyr(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%tyra) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%tyra(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%tdly) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%tdly(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%tlag) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%lagday)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%lagday grid%tlag(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%xland) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%xland(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%achfx) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%achfx(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%aclhf) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%aclhf(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%snowc) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%snowc(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%prec_acc_c) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%prec_acc_c(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%prec_acc_nc) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%prec_acc_nc(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%snow_acc_nc) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%snow_acc_nc(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%tml) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%tml(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%t0ml) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%t0ml(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%hml) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%hml(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%h0ml) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%h0ml(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%huml) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%huml(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%hvml) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%hvml(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%tmoml) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%tmoml(pig,pjg) = xv(1) ENDIF DO itrace = PARAM_FIRST_SCALAR, num_tracer CALL rsl_lite_from_parent_msg((((ckde-1))-(ckds)+1)*RWORDSIZE,xv) DO k = ckds,(ckde-1) tracer(pig,k,pjg,itrace) = xv(k) ENDDO ENDDO IF ( SIZE(grid%vertstrucc) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg((((ckde-1))-(ckds)+1)*RWORDSIZE,xv) DO k = ckds,(ckde-1) grid%vertstrucc(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%vertstrucs) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg((((ckde-1))-(ckds)+1)*RWORDSIZE,xv) DO k = ckds,(ckde-1) grid%vertstrucs(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%field_sf) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%num_stoch_levels)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%num_stoch_levels grid%field_sf(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%field_pbl) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%num_stoch_levels)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%num_stoch_levels grid%field_pbl(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%field_conv) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%num_stoch_levels)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%num_stoch_levels grid%field_conv(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%ru_tendf_stoch) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%num_stoch_levels)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%num_stoch_levels grid%ru_tendf_stoch(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%rv_tendf_stoch) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%num_stoch_levels)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%num_stoch_levels grid%rv_tendf_stoch(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%rt_tendf_stoch) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%num_stoch_levels)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%num_stoch_levels grid%rt_tendf_stoch(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%rand_pert) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%num_stoch_levels)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%num_stoch_levels grid%rand_pert(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%pattern_spp_conv) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%num_stoch_levels)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%num_stoch_levels grid%pattern_spp_conv(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%pattern_spp_pbl) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%num_stoch_levels)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%num_stoch_levels grid%pattern_spp_pbl(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%pattern_spp_lsm) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%num_stoch_levels)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%num_stoch_levels grid%pattern_spp_lsm(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%rstoch) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%num_stoch_levels)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%num_stoch_levels grid%rstoch(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%numc) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%numc(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%nump) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%nump(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%snl) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%snl(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%snowdp) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%snowdp(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%wtc) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%wtc(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%wtp) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%wtp(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%h2osno) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%h2osno(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%t_grnd) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%t_grnd(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%t_veg) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%t_veg(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%h2ocan) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%h2ocan(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%h2ocan_col) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%h2ocan_col(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%t2m_max) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%t2m_max(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%t2m_min) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%t2m_min(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%t2clm) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%t2clm(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%t_ref2m) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%t_ref2m(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%h2osoi_liq_s1) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%h2osoi_liq_s1(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%h2osoi_liq_s2) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%h2osoi_liq_s2(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%h2osoi_liq_s3) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%h2osoi_liq_s3(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%h2osoi_liq_s4) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%h2osoi_liq_s4(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%h2osoi_liq_s5) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%h2osoi_liq_s5(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%h2osoi_liq1) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%h2osoi_liq1(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%h2osoi_liq2) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%h2osoi_liq2(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%h2osoi_liq3) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%h2osoi_liq3(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%h2osoi_liq4) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%h2osoi_liq4(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%h2osoi_liq5) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%h2osoi_liq5(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%h2osoi_liq6) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%h2osoi_liq6(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%h2osoi_liq7) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%h2osoi_liq7(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%h2osoi_liq8) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%h2osoi_liq8(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%h2osoi_liq9) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%h2osoi_liq9(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%h2osoi_liq10) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%h2osoi_liq10(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%h2osoi_ice_s1) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%h2osoi_ice_s1(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%h2osoi_ice_s2) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%h2osoi_ice_s2(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%h2osoi_ice_s3) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%h2osoi_ice_s3(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%h2osoi_ice_s4) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%h2osoi_ice_s4(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%h2osoi_ice_s5) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%h2osoi_ice_s5(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%h2osoi_ice1) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%h2osoi_ice1(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%h2osoi_ice2) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%h2osoi_ice2(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%h2osoi_ice3) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%h2osoi_ice3(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%h2osoi_ice4) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%h2osoi_ice4(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%h2osoi_ice5) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%h2osoi_ice5(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%h2osoi_ice6) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%h2osoi_ice6(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%h2osoi_ice7) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%h2osoi_ice7(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%h2osoi_ice8) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%h2osoi_ice8(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%h2osoi_ice9) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%h2osoi_ice9(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%h2osoi_ice10) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%h2osoi_ice10(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%t_soisno_s1) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%t_soisno_s1(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%t_soisno_s2) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%t_soisno_s2(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%t_soisno_s3) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%t_soisno_s3(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%t_soisno_s4) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%t_soisno_s4(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%t_soisno_s5) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%t_soisno_s5(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%t_soisno1) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%t_soisno1(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%t_soisno2) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%t_soisno2(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%t_soisno3) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%t_soisno3(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%t_soisno4) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%t_soisno4(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%t_soisno5) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%t_soisno5(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%t_soisno6) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%t_soisno6(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%t_soisno7) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%t_soisno7(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%t_soisno8) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%t_soisno8(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%t_soisno9) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%t_soisno9(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%t_soisno10) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%t_soisno10(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%dzsnow1) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%dzsnow1(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%dzsnow2) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%dzsnow2(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%dzsnow3) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%dzsnow3(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%dzsnow4) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%dzsnow4(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%dzsnow5) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%dzsnow5(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%snowrds1) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%snowrds1(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%snowrds2) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%snowrds2(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%snowrds3) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%snowrds3(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%snowrds4) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%snowrds4(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%snowrds5) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%snowrds5(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%t_lake1) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%t_lake1(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%t_lake2) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%t_lake2(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%t_lake3) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%t_lake3(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%t_lake4) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%t_lake4(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%t_lake5) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%t_lake5(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%t_lake6) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%t_lake6(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%t_lake7) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%t_lake7(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%t_lake8) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%t_lake8(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%t_lake9) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%t_lake9(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%t_lake10) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%t_lake10(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%h2osoi_vol1) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%h2osoi_vol1(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%h2osoi_vol2) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%h2osoi_vol2(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%h2osoi_vol3) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%h2osoi_vol3(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%h2osoi_vol4) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%h2osoi_vol4(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%h2osoi_vol5) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%h2osoi_vol5(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%h2osoi_vol6) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%h2osoi_vol6(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%h2osoi_vol7) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%h2osoi_vol7(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%h2osoi_vol8) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%h2osoi_vol8(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%h2osoi_vol9) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%h2osoi_vol9(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%h2osoi_vol10) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%h2osoi_vol10(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%albedosubgrid) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%albedosubgrid(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%lhsubgrid) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%lhsubgrid(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%hfxsubgrid) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%hfxsubgrid(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%lwupsubgrid) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%lwupsubgrid(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%q2subgrid) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%q2subgrid(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%sabvsubgrid) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%sabvsubgrid(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%sabgsubgrid) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%sabgsubgrid(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%nrasubgrid) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%nrasubgrid(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%swupsubgrid) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%maxpatch)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%maxpatch grid%swupsubgrid(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%lakedepth2d) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%lakedepth2d(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%savedtke12d) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%savedtke12d(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%snowdp2d) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%snowdp2d(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%h2osno2d) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%h2osno2d(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%snl2d) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%snl2d(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%t_grnd2d) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%t_grnd2d(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%t_lake3d) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((10)-(1)+1)*RWORDSIZE,xv) DO k = 1,10 grid%t_lake3d(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%lake_icefrac3d) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((10)-(1)+1)*RWORDSIZE,xv) DO k = 1,10 grid%lake_icefrac3d(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%z_lake3d) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((10)-(1)+1)*RWORDSIZE,xv) DO k = 1,10 grid%z_lake3d(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%dz_lake3d) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((10)-(1)+1)*RWORDSIZE,xv) DO k = 1,10 grid%dz_lake3d(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%t_soisno3d) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((15)-(1)+1)*RWORDSIZE,xv) DO k = 1,15 grid%t_soisno3d(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%h2osoi_ice3d) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((15)-(1)+1)*RWORDSIZE,xv) DO k = 1,15 grid%h2osoi_ice3d(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%h2osoi_liq3d) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((15)-(1)+1)*RWORDSIZE,xv) DO k = 1,15 grid%h2osoi_liq3d(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%h2osoi_vol3d) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((15)-(1)+1)*RWORDSIZE,xv) DO k = 1,15 grid%h2osoi_vol3d(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%z3d) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((15)-(1)+1)*RWORDSIZE,xv) DO k = 1,15 grid%z3d(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%dz3d) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((15)-(1)+1)*RWORDSIZE,xv) DO k = 1,15 grid%dz3d(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%zi3d) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((16)-(1)+1)*RWORDSIZE,xv) DO k = 1,16 grid%zi3d(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%watsat3d) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((10)-(1)+1)*RWORDSIZE,xv) DO k = 1,10 grid%watsat3d(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%csol3d) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((10)-(1)+1)*RWORDSIZE,xv) DO k = 1,10 grid%csol3d(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%tkmg3d) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((10)-(1)+1)*RWORDSIZE,xv) DO k = 1,10 grid%tkmg3d(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%tkdry3d) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((10)-(1)+1)*RWORDSIZE,xv) DO k = 1,10 grid%tkdry3d(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%tksatu3d) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((10)-(1)+1)*RWORDSIZE,xv) DO k = 1,10 grid%tksatu3d(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%isnowxy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%isnowxy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%tvxy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%tvxy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%tgxy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%tgxy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%canicexy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%canicexy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%canliqxy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%canliqxy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%eahxy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%eahxy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%tahxy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%tahxy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%cmxy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%cmxy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%chxy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%chxy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%fwetxy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%fwetxy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%sneqvoxy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%sneqvoxy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%alboldxy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%alboldxy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%qsnowxy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%qsnowxy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%wslakexy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%wslakexy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%zwtxy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%zwtxy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%waxy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%waxy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%wtxy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%wtxy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%tsnoxy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%num_snow_layers)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%num_snow_layers grid%tsnoxy(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%zsnsoxy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%num_snso_layers)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%num_snso_layers grid%zsnsoxy(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%snicexy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%num_snow_layers)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%num_snow_layers grid%snicexy(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%snliqxy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%num_snow_layers)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%num_snow_layers grid%snliqxy(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%lfmassxy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%lfmassxy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%rtmassxy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%rtmassxy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%stmassxy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%stmassxy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%woodxy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%woodxy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%stblcpxy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%stblcpxy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%fastcpxy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%fastcpxy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%xsaixy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%xsaixy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%t2mvxy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%t2mvxy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%t2mbxy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%t2mbxy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%q2mvxy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%q2mvxy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%q2mbxy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%q2mbxy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%tradxy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%tradxy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%neexy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%neexy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%gppxy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%gppxy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%nppxy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%nppxy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%fvegxy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%fvegxy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%qinxy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%qinxy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%runsfxy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%runsfxy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%runsbxy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%runsbxy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%ecanxy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%ecanxy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%edirxy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%edirxy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%etranxy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%etranxy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%fsaxy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%fsaxy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%firaxy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%firaxy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%aparxy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%aparxy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%psnxy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%psnxy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%savxy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%savxy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%sagxy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%sagxy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%rssunxy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%rssunxy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%rsshaxy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%rsshaxy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%bgapxy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%bgapxy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%wgapxy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%wgapxy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%tgvxy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%tgvxy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%tgbxy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%tgbxy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%chvxy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%chvxy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%chbxy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%chbxy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%shgxy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%shgxy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%shcxy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%shcxy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%shbxy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%shbxy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%evgxy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%evgxy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%evbxy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%evbxy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%ghvxy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%ghvxy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%ghbxy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%ghbxy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%irgxy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%irgxy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%ircxy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%ircxy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%irbxy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%irbxy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%trxy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%trxy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%evcxy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%evcxy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%chleafxy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%chleafxy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%chucxy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%chucxy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%chv2xy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%chv2xy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%chb2xy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%chb2xy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%chstarxy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%chstarxy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%fdepthxy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%fdepthxy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%eqzwt) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%eqzwt(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%rechclim) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%rechclim(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%riverbedxy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%riverbedxy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%soilcomp) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((8)-(1)+1)*RWORDSIZE,xv) DO k = 1,8 grid%soilcomp(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%soilcl1) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%soilcl1(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%soilcl2) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%soilcl2(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%soilcl3) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%soilcl3(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%soilcl4) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%soilcl4(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%grainxy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%grainxy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%gddxy) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%gddxy(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%croptype) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((5)-(1)+1)*RWORDSIZE,xv) DO k = 1,5 grid%croptype(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%planting) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%planting(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%harvest) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%harvest(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%season_gdd) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%season_gdd(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%gecros_state) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((60)-(1)+1)*RWORDSIZE,xv) DO k = 1,60 grid%gecros_state(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%field_u_tend_perturb) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%num_stoch_levels)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%num_stoch_levels grid%field_u_tend_perturb(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%field_v_tend_perturb) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%num_stoch_levels)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%num_stoch_levels grid%field_v_tend_perturb(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%field_t_tend_perturb) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(((config_flags%num_stoch_levels)-(1)+1)*RWORDSIZE,xv) DO k = 1,config_flags%num_stoch_levels grid%field_t_tend_perturb(pig,k,pjg) = xv(k) ENDDO ENDIF IF ( SIZE(grid%pcb) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%pcb(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%pc_2) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%pc_2(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%landmask) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%landmask(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%lakemask) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%lakemask(pig,pjg) = xv(1) ENDIF IF ( SIZE(grid%sst) .GT. 1 ) THEN ! okay for intermediate_grid too. see comment in gen_comms.c CALL rsl_lite_from_parent_msg(RWORDSIZE,xv) grid%sst(pig,pjg) = xv(1) ENDIF CALL rsl_lite_from_parent_info(pig,pjg,retval) ENDDO !ENDOFREGISTRYGENERATEDINCLUDE