!STARTOFREGISTRYGENERATEDINCLUDE 'inc/deallocs_3.F' ! ! 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. ! SUBROUTINE deallocs_3( grid ) USE module_wrf_error USE module_domain_type IMPLICIT NONE TYPE( domain ), POINTER :: grid INTEGER :: ierr IF ( ASSOCIATED( grid%lu_mask ) ) THEN DEALLOCATE(grid%lu_mask,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%lu_mask. ') endif NULLIFY(grid%lu_mask) ENDIF IF ( ASSOCIATED( grid%t_gc ) ) THEN DEALLOCATE(grid%t_gc,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%t_gc. ') endif NULLIFY(grid%t_gc) ENDIF IF ( ASSOCIATED( grid%tmn_gc ) ) THEN DEALLOCATE(grid%tmn_gc,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%tmn_gc. ') endif NULLIFY(grid%tmn_gc) ENDIF IF ( ASSOCIATED( grid%qv_gc ) ) THEN DEALLOCATE(grid%qv_gc,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%qv_gc. ') endif NULLIFY(grid%qv_gc) ENDIF IF ( ASSOCIATED( grid%qni_gc ) ) THEN DEALLOCATE(grid%qni_gc,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%qni_gc. ') endif NULLIFY(grid%qni_gc) ENDIF IF ( ASSOCIATED( grid%ght_min_p ) ) THEN DEALLOCATE(grid%ght_min_p,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%ght_min_p. ') endif NULLIFY(grid%ght_min_p) ENDIF IF ( ASSOCIATED( grid%vmaxw ) ) THEN DEALLOCATE(grid%vmaxw,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%vmaxw. ') endif NULLIFY(grid%vmaxw) ENDIF IF ( ASSOCIATED( grid%u_save ) ) THEN DEALLOCATE(grid%u_save,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%u_save. ') endif NULLIFY(grid%u_save) ENDIF IF ( ASSOCIATED( grid%v_save ) ) THEN DEALLOCATE(grid%v_save,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%v_save. ') endif NULLIFY(grid%v_save) ENDIF IF ( ASSOCIATED( grid%php ) ) THEN DEALLOCATE(grid%php,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%php. ') endif NULLIFY(grid%php) ENDIF IF ( ASSOCIATED( grid%t_save ) ) THEN DEALLOCATE(grid%t_save,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%t_save. ') endif NULLIFY(grid%t_save) ENDIF IF ( ASSOCIATED( grid%ql_upstream_y_tend ) ) THEN DEALLOCATE(grid%ql_upstream_y_tend,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%ql_upstream_y_tend. ') endif NULLIFY(grid%ql_upstream_y_tend) ENDIF IF ( ASSOCIATED( grid%th_largescale_tend ) ) THEN DEALLOCATE(grid%th_largescale_tend,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%th_largescale_tend. ') endif NULLIFY(grid%th_largescale_tend) ENDIF IF ( ASSOCIATED( grid%tau_x_tend ) ) THEN DEALLOCATE(grid%tau_x_tend,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%tau_x_tend. ') endif NULLIFY(grid%tau_x_tend) ENDIF IF ( ASSOCIATED( grid%muus ) ) THEN DEALLOCATE(grid%muus,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%muus. ') endif NULLIFY(grid%muus) ENDIF IF ( ASSOCIATED( grid%tke_1 ) ) THEN DEALLOCATE(grid%tke_1,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%tke_1. ') endif NULLIFY(grid%tke_1) ENDIF IF ( ASSOCIATED( grid%tke_2 ) ) THEN DEALLOCATE(grid%tke_2,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%tke_2. ') endif NULLIFY(grid%tke_2) ENDIF IF ( ASSOCIATED( grid%alb ) ) THEN DEALLOCATE(grid%alb,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%alb. ') endif NULLIFY(grid%alb) ENDIF IF ( ASSOCIATED( grid%z ) ) THEN DEALLOCATE(grid%z,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%z. ') endif NULLIFY(grid%z) ENDIF IF ( ASSOCIATED( grid%vratx ) ) THEN DEALLOCATE(grid%vratx,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%vratx. ') endif NULLIFY(grid%vratx) ENDIF IF ( ASSOCIATED( grid%moist_bxs ) ) THEN DEALLOCATE(grid%moist_bxs,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%moist_bxs. ') endif NULLIFY(grid%moist_bxs) ENDIF IF ( ASSOCIATED( grid%moist_bxe ) ) THEN DEALLOCATE(grid%moist_bxe,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%moist_bxe. ') endif NULLIFY(grid%moist_bxe) ENDIF IF ( ASSOCIATED( grid%moist_bys ) ) THEN DEALLOCATE(grid%moist_bys,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%moist_bys. ') endif NULLIFY(grid%moist_bys) ENDIF IF ( ASSOCIATED( grid%moist_bye ) ) THEN DEALLOCATE(grid%moist_bye,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%moist_bye. ') endif NULLIFY(grid%moist_bye) ENDIF IF ( ASSOCIATED( grid%re_cloud ) ) THEN DEALLOCATE(grid%re_cloud,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%re_cloud. ') endif NULLIFY(grid%re_cloud) ENDIF IF ( ASSOCIATED( grid%dfi_re_cloud_gsfc ) ) THEN DEALLOCATE(grid%dfi_re_cloud_gsfc,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%dfi_re_cloud_gsfc. ') endif NULLIFY(grid%dfi_re_cloud_gsfc) ENDIF IF ( ASSOCIATED( grid%dfi_scalar ) ) THEN DEALLOCATE(grid%dfi_scalar,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%dfi_scalar. ') endif NULLIFY(grid%dfi_scalar) ENDIF IF ( ASSOCIATED( grid%soilm ) ) THEN DEALLOCATE(grid%soilm,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%soilm. ') endif NULLIFY(grid%soilm) ENDIF IF ( ASSOCIATED( grid%sm100200 ) ) THEN DEALLOCATE(grid%sm100200,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%sm100200. ') endif NULLIFY(grid%sm100200) ENDIF IF ( ASSOCIATED( grid%sw010200 ) ) THEN DEALLOCATE(grid%sw010200,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%sw010200. ') endif NULLIFY(grid%sw010200) ENDIF IF ( ASSOCIATED( grid%soilt000 ) ) THEN DEALLOCATE(grid%soilt000,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%soilt000. ') endif NULLIFY(grid%soilt000) ENDIF IF ( ASSOCIATED( grid%shdmin ) ) THEN DEALLOCATE(grid%shdmin,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%shdmin. ') endif NULLIFY(grid%shdmin) ENDIF IF ( ASSOCIATED( grid%tslb ) ) THEN DEALLOCATE(grid%tslb,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%tslb. ') endif NULLIFY(grid%tslb) ENDIF IF ( ASSOCIATED( grid%ts_tslb ) ) THEN DEALLOCATE(grid%ts_tslb,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%ts_tslb. ') endif NULLIFY(grid%ts_tslb) ENDIF IF ( ASSOCIATED( grid%dzb ) ) THEN DEALLOCATE(grid%dzb,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%dzb. ') endif NULLIFY(grid%dzb) ENDIF IF ( ASSOCIATED( grid%lf_urb2d_s ) ) THEN DEALLOCATE(grid%lf_urb2d_s,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%lf_urb2d_s. ') endif NULLIFY(grid%lf_urb2d_s) ENDIF IF ( ASSOCIATED( grid%soldrain ) ) THEN DEALLOCATE(grid%soldrain,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%soldrain. ') endif NULLIFY(grid%soldrain) ENDIF IF ( ASSOCIATED( grid%acgrdflx ) ) THEN DEALLOCATE(grid%acgrdflx,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%acgrdflx. ') endif NULLIFY(grid%acgrdflx) ENDIF IF ( ASSOCIATED( grid%dfi_mu ) ) THEN DEALLOCATE(grid%dfi_mu,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%dfi_mu. ') endif NULLIFY(grid%dfi_mu) ENDIF IF ( ASSOCIATED( grid%dfi_alt ) ) THEN DEALLOCATE(grid%dfi_alt,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%dfi_alt. ') endif NULLIFY(grid%dfi_alt) ENDIF IF ( ASSOCIATED( grid%tgr_urb2d ) ) THEN DEALLOCATE(grid%tgr_urb2d,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%tgr_urb2d. ') endif NULLIFY(grid%tgr_urb2d) ENDIF IF ( ASSOCIATED( grid%drelb_urb2d ) ) THEN DEALLOCATE(grid%drelb_urb2d,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%drelb_urb2d. ') endif NULLIFY(grid%drelb_urb2d) ENDIF IF ( ASSOCIATED( grid%g_urb2d ) ) THEN DEALLOCATE(grid%g_urb2d,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%g_urb2d. ') endif NULLIFY(grid%g_urb2d) ENDIF IF ( ASSOCIATED( grid%tw2lev_urb3d ) ) THEN DEALLOCATE(grid%tw2lev_urb3d,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%tw2lev_urb3d. ') endif NULLIFY(grid%tw2lev_urb3d) ENDIF IF ( ASSOCIATED( grid%sfr_urb3d ) ) THEN DEALLOCATE(grid%sfr_urb3d,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%sfr_urb3d. ') endif NULLIFY(grid%sfr_urb3d) ENDIF IF ( ASSOCIATED( grid%dgr_urb3d ) ) THEN DEALLOCATE(grid%dgr_urb3d,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%dgr_urb3d. ') endif NULLIFY(grid%dgr_urb3d) ENDIF IF ( ASSOCIATED( grid%swvisdif ) ) THEN DEALLOCATE(grid%swvisdif,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%swvisdif. ') endif NULLIFY(grid%swvisdif) ENDIF IF ( ASSOCIATED( grid%q2obs ) ) THEN DEALLOCATE(grid%q2obs,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%q2obs. ') endif NULLIFY(grid%q2obs) ENDIF IF ( ASSOCIATED( grid%fm ) ) THEN DEALLOCATE(grid%fm,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%fm. ') endif NULLIFY(grid%fm) ENDIF IF ( ASSOCIATED( grid%ct ) ) THEN DEALLOCATE(grid%ct,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%ct. ') endif NULLIFY(grid%ct) ENDIF IF ( ASSOCIATED( grid%akpbl ) ) THEN DEALLOCATE(grid%akpbl,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%akpbl. ') endif NULLIFY(grid%akpbl) ENDIF IF ( ASSOCIATED( grid%rv_up ) ) THEN DEALLOCATE(grid%rv_up,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%rv_up. ') endif NULLIFY(grid%rv_up) ENDIF IF ( ASSOCIATED( grid%uw_temf ) ) THEN DEALLOCATE(grid%uw_temf,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%uw_temf. ') endif NULLIFY(grid%uw_temf) ENDIF IF ( ASSOCIATED( grid%wm_temf ) ) THEN DEALLOCATE(grid%wm_temf,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%wm_temf. ') endif NULLIFY(grid%wm_temf) ENDIF IF ( ASSOCIATED( grid%ch ) ) THEN DEALLOCATE(grid%ch,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%ch. ') endif NULLIFY(grid%ch) ENDIF IF ( ASSOCIATED( grid%maxwidth ) ) THEN DEALLOCATE(grid%maxwidth,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%maxwidth. ') endif NULLIFY(grid%maxwidth) ENDIF IF ( ASSOCIATED( grid%oa1 ) ) THEN DEALLOCATE(grid%oa1,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%oa1. ') endif NULLIFY(grid%oa1) ENDIF IF ( ASSOCIATED( grid%dtaux3d_ss ) ) THEN DEALLOCATE(grid%dtaux3d_ss,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%dtaux3d_ss. ') endif NULLIFY(grid%dtaux3d_ss) ENDIF IF ( ASSOCIATED( grid%var2dls ) ) THEN DEALLOCATE(grid%var2dls,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%var2dls. ') endif NULLIFY(grid%var2dls) ENDIF IF ( ASSOCIATED( grid%oa1ss ) ) THEN DEALLOCATE(grid%oa1ss,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%oa1ss. ') endif NULLIFY(grid%oa1ss) ENDIF IF ( ASSOCIATED( grid%a_t_bep ) ) THEN DEALLOCATE(grid%a_t_bep,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%a_t_bep. ') endif NULLIFY(grid%a_t_bep) ENDIF IF ( ASSOCIATED( grid%tke_pbl ) ) THEN DEALLOCATE(grid%tke_pbl,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%tke_pbl. ') endif NULLIFY(grid%tke_pbl) ENDIF IF ( ASSOCIATED( grid%hbotr ) ) THEN DEALLOCATE(grid%hbotr,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%hbotr. ') endif NULLIFY(grid%hbotr) ENDIF IF ( ASSOCIATED( grid%acfrcv ) ) THEN DEALLOCATE(grid%acfrcv,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%acfrcv. ') endif NULLIFY(grid%acfrcv) ENDIF IF ( ASSOCIATED( grid%ozmixm ) ) THEN DEALLOCATE(grid%ozmixm,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%ozmixm. ') endif NULLIFY(grid%ozmixm) ENDIF IF ( ASSOCIATED( grid%om_u ) ) THEN DEALLOCATE(grid%om_u,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%om_u. ') endif NULLIFY(grid%om_u) ENDIF IF ( ASSOCIATED( grid%shall ) ) THEN DEALLOCATE(grid%shall,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%shall. ') endif NULLIFY(grid%shall) ENDIF IF ( ASSOCIATED( grid%wup_cup ) ) THEN DEALLOCATE(grid%wup_cup,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%wup_cup. ') endif NULLIFY(grid%wup_cup) ENDIF IF ( ASSOCIATED( grid%lnint ) ) THEN DEALLOCATE(grid%lnint,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%lnint. ') endif NULLIFY(grid%lnint) ENDIF IF ( ASSOCIATED( grid%msfvx_inv ) ) THEN DEALLOCATE(grid%msfvx_inv,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%msfvx_inv. ') endif NULLIFY(grid%msfvx_inv) ENDIF IF ( ASSOCIATED( grid%ht_shad_bxs ) ) THEN DEALLOCATE(grid%ht_shad_bxs,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%ht_shad_bxs. ') endif NULLIFY(grid%ht_shad_bxs) ENDIF IF ( ASSOCIATED( grid%ht_shad_bxe ) ) THEN DEALLOCATE(grid%ht_shad_bxe,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%ht_shad_bxe. ') endif NULLIFY(grid%ht_shad_bxe) ENDIF IF ( ASSOCIATED( grid%ht_shad_bys ) ) THEN DEALLOCATE(grid%ht_shad_bys,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%ht_shad_bys. ') endif NULLIFY(grid%ht_shad_bys) ENDIF IF ( ASSOCIATED( grid%ht_shad_bye ) ) THEN DEALLOCATE(grid%ht_shad_bye,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%ht_shad_bye. ') endif NULLIFY(grid%ht_shad_bye) ENDIF IF ( ASSOCIATED( grid%phys_tot ) ) THEN DEALLOCATE(grid%phys_tot,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%phys_tot. ') endif NULLIFY(grid%phys_tot) ENDIF IF ( ASSOCIATED( grid%acphysm ) ) THEN DEALLOCATE(grid%acphysm,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%acphysm. ') endif NULLIFY(grid%acphysm) ENDIF IF ( ASSOCIATED( grid%tswup ) ) THEN DEALLOCATE(grid%tswup,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%tswup. ') endif NULLIFY(grid%tswup) ENDIF IF ( ASSOCIATED( grid%rqishten ) ) THEN DEALLOCATE(grid%rqishten,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%rqishten. ') endif NULLIFY(grid%rqishten) ENDIF IF ( ASSOCIATED( grid%clddpthb ) ) THEN DEALLOCATE(grid%clddpthb,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%clddpthb. ') endif NULLIFY(grid%clddpthb) ENDIF IF ( ASSOCIATED( grid%pblhavg ) ) THEN DEALLOCATE(grid%pblhavg,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%pblhavg. ') endif NULLIFY(grid%pblhavg) ENDIF IF ( ASSOCIATED( grid%rqincuten ) ) THEN DEALLOCATE(grid%rqincuten,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%rqincuten. ') endif NULLIFY(grid%rqincuten) ENDIF IF ( ASSOCIATED( grid%rainshv ) ) THEN DEALLOCATE(grid%rainshv,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%rainshv. ') endif NULLIFY(grid%rainshv) ENDIF IF ( ASSOCIATED( grid%qv_old ) ) THEN DEALLOCATE(grid%qv_old,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%qv_old. ') endif NULLIFY(grid%qv_old) ENDIF IF ( ASSOCIATED( grid%phii3d_3 ) ) THEN DEALLOCATE(grid%phii3d_3,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%phii3d_3. ') endif NULLIFY(grid%phii3d_3) ENDIF IF ( ASSOCIATED( grid%ddr_kf ) ) THEN DEALLOCATE(grid%ddr_kf,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%ddr_kf. ') endif NULLIFY(grid%ddr_kf) ENDIF IF ( ASSOCIATED( grid%edt_out ) ) THEN DEALLOCATE(grid%edt_out,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%edt_out. ') endif NULLIFY(grid%edt_out) ENDIF IF ( ASSOCIATED( grid%cugd_ttens ) ) THEN DEALLOCATE(grid%cugd_ttens,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%cugd_ttens. ') endif NULLIFY(grid%cugd_ttens) ENDIF IF ( ASSOCIATED( grid%qr_cu ) ) THEN DEALLOCATE(grid%qr_cu,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%qr_cu. ') endif NULLIFY(grid%qr_cu) ENDIF IF ( ASSOCIATED( grid%efsg ) ) THEN DEALLOCATE(grid%efsg,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%efsg. ') endif NULLIFY(grid%efsg) ENDIF IF ( ASSOCIATED( grid%cldfra_old ) ) THEN DEALLOCATE(grid%cldfra_old,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%cldfra_old. ') endif NULLIFY(grid%cldfra_old) ENDIF IF ( ASSOCIATED( grid%swddir2 ) ) THEN DEALLOCATE(grid%swddir2,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%swddir2. ') endif NULLIFY(grid%swddir2) ENDIF IF ( ASSOCIATED( grid%coszen_ref ) ) THEN DEALLOCATE(grid%coszen_ref,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%coszen_ref. ') endif NULLIFY(grid%coszen_ref) ENDIF IF ( ASSOCIATED( grid%tt2min ) ) THEN DEALLOCATE(grid%tt2min,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%tt2min. ') endif NULLIFY(grid%tt2min) ENDIF IF ( ASSOCIATED( grid%tskintempmin ) ) THEN DEALLOCATE(grid%tskintempmin,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%tskintempmin. ') endif NULLIFY(grid%tskintempmin) ENDIF IF ( ASSOCIATED( grid%v10std ) ) THEN DEALLOCATE(grid%v10std,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%v10std. ') endif NULLIFY(grid%v10std) ENDIF IF ( ASSOCIATED( grid%acswuptc ) ) THEN DEALLOCATE(grid%acswuptc,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%acswuptc. ') endif NULLIFY(grid%acswuptc) ENDIF IF ( ASSOCIATED( grid%aclwupbc ) ) THEN DEALLOCATE(grid%aclwupbc,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%aclwupbc. ') endif NULLIFY(grid%aclwupbc) ENDIF IF ( ASSOCIATED( grid%i_aclwuptc ) ) THEN DEALLOCATE(grid%i_aclwuptc,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%i_aclwuptc. ') endif NULLIFY(grid%i_aclwuptc) ENDIF IF ( ASSOCIATED( grid%swdntcln ) ) THEN DEALLOCATE(grid%swdntcln,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%swdntcln. ') endif NULLIFY(grid%swdntcln) ENDIF IF ( ASSOCIATED( grid%lwdntcln ) ) THEN DEALLOCATE(grid%lwdntcln,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%lwdntcln. ') endif NULLIFY(grid%lwdntcln) ENDIF IF ( ASSOCIATED( grid%xlat_v ) ) THEN DEALLOCATE(grid%xlat_v,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%xlat_v. ') endif NULLIFY(grid%xlat_v) ENDIF IF ( ASSOCIATED( grid%rvblten ) ) THEN DEALLOCATE(grid%rvblten,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%rvblten. ') endif NULLIFY(grid%rvblten) ENDIF IF ( ASSOCIATED( grid%tslb_mosaic ) ) THEN DEALLOCATE(grid%tslb_mosaic,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%tslb_mosaic. ') endif NULLIFY(grid%tslb_mosaic) ENDIF IF ( ASSOCIATED( grid%z0_mosaic ) ) THEN DEALLOCATE(grid%z0_mosaic,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%z0_mosaic. ') endif NULLIFY(grid%z0_mosaic) ENDIF IF ( ASSOCIATED( grid%ts_urb2d_mosaic ) ) THEN DEALLOCATE(grid%ts_urb2d_mosaic,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%ts_urb2d_mosaic. ') endif NULLIFY(grid%ts_urb2d_mosaic) ENDIF IF ( ASSOCIATED( grid%landusef2 ) ) THEN DEALLOCATE(grid%landusef2,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%landusef2. ') endif NULLIFY(grid%landusef2) ENDIF IF ( ASSOCIATED( grid%t_phy ) ) THEN DEALLOCATE(grid%t_phy,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%t_phy. ') endif NULLIFY(grid%t_phy) ENDIF IF ( ASSOCIATED( grid%rmol ) ) THEN DEALLOCATE(grid%rmol,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%rmol. ') endif NULLIFY(grid%rmol) ENDIF IF ( ASSOCIATED( grid%flqc ) ) THEN DEALLOCATE(grid%flqc,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%flqc. ') endif NULLIFY(grid%flqc) ENDIF IF ( ASSOCIATED( grid%dfi_snowc ) ) THEN DEALLOCATE(grid%dfi_snowc,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%dfi_snowc. ') endif NULLIFY(grid%dfi_snowc) ENDIF IF ( ASSOCIATED( grid%defor12 ) ) THEN DEALLOCATE(grid%defor12,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%defor12. ') endif NULLIFY(grid%defor12) ENDIF IF ( ASSOCIATED( grid%v10_ndg_old ) ) THEN DEALLOCATE(grid%v10_ndg_old,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%v10_ndg_old. ') endif NULLIFY(grid%v10_ndg_old) ENDIF IF ( ASSOCIATED( grid%ps_ndg_old ) ) THEN DEALLOCATE(grid%ps_ndg_old,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%ps_ndg_old. ') endif NULLIFY(grid%ps_ndg_old) ENDIF IF ( ASSOCIATED( grid%qfx_both ) ) THEN DEALLOCATE(grid%qfx_both,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%qfx_both. ') endif NULLIFY(grid%qfx_both) ENDIF IF ( ASSOCIATED( grid%w_dn_max ) ) THEN DEALLOCATE(grid%w_dn_max,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%w_dn_max. ') endif NULLIFY(grid%w_dn_max) ENDIF IF ( ASSOCIATED( grid%prec_acc_c ) ) THEN DEALLOCATE(grid%prec_acc_c,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%prec_acc_c. ') endif NULLIFY(grid%prec_acc_c) ENDIF IF ( ASSOCIATED( grid%track_z ) ) THEN DEALLOCATE(grid%track_z,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%track_z. ') endif NULLIFY(grid%track_z) ENDIF IF ( ASSOCIATED( grid%track_qice ) ) THEN DEALLOCATE(grid%track_qice,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%track_qice. ') endif NULLIFY(grid%track_qice) ENDIF IF ( ASSOCIATED( grid%aucuten ) ) THEN DEALLOCATE(grid%aucuten,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%aucuten. ') endif NULLIFY(grid%aucuten) ENDIF IF ( ASSOCIATED( grid%hailcast_dhail5 ) ) THEN DEALLOCATE(grid%hailcast_dhail5,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%hailcast_dhail5. ') endif NULLIFY(grid%hailcast_dhail5) ENDIF IF ( ASSOCIATED( grid%cg_flashrate ) ) THEN DEALLOCATE(grid%cg_flashrate,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%cg_flashrate. ') endif NULLIFY(grid%cg_flashrate) ENDIF IF ( ASSOCIATED( grid%iccg_in_den ) ) THEN DEALLOCATE(grid%iccg_in_den,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%iccg_in_den. ') endif NULLIFY(grid%iccg_in_den) ENDIF IF ( ASSOCIATED( grid%clat_xxx ) ) THEN DEALLOCATE(grid%clat_xxx,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%clat_xxx. ') endif NULLIFY(grid%clat_xxx) ENDIF IF ( ASSOCIATED( grid%zsf ) ) THEN DEALLOCATE(grid%zsf,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%zsf. ') endif NULLIFY(grid%zsf) ENDIF IF ( ASSOCIATED( grid%vah ) ) THEN DEALLOCATE(grid%vah,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%vah. ') endif NULLIFY(grid%vah) ENDIF IF ( ASSOCIATED( grid%fire_area ) ) THEN DEALLOCATE(grid%fire_area,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%fire_area. ') endif NULLIFY(grid%fire_area) ENDIF IF ( ASSOCIATED( grid%betafl ) ) THEN DEALLOCATE(grid%betafl,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%betafl. ') endif NULLIFY(grid%betafl) ENDIF IF ( ASSOCIATED( grid%fs_p_src ) ) THEN DEALLOCATE(grid%fs_p_src,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%fs_p_src. ') endif NULLIFY(grid%fs_p_src) ENDIF IF ( ASSOCIATED( grid%avgflx_wwm ) ) THEN DEALLOCATE(grid%avgflx_wwm,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%avgflx_wwm. ') endif NULLIFY(grid%avgflx_wwm) ENDIF IF ( ASSOCIATED( grid%dfd1 ) ) THEN DEALLOCATE(grid%dfd1,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%dfd1. ') endif NULLIFY(grid%dfd1) ENDIF IF ( ASSOCIATED( grid%rand_pert ) ) THEN DEALLOCATE(grid%rand_pert,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%rand_pert. ') endif NULLIFY(grid%rand_pert) ENDIF IF ( ASSOCIATED( grid%spt_amp ) ) THEN DEALLOCATE(grid%spt_amp,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%spt_amp. ') endif NULLIFY(grid%spt_amp) ENDIF IF ( ASSOCIATED( grid%sp_amp4 ) ) THEN DEALLOCATE(grid%sp_amp4,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%sp_amp4. ') endif NULLIFY(grid%sp_amp4) ENDIF IF ( ASSOCIATED( grid%iseedarr_spp_conv ) ) THEN DEALLOCATE(grid%iseedarr_spp_conv,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%iseedarr_spp_conv. ') endif NULLIFY(grid%iseedarr_spp_conv) ENDIF IF ( ASSOCIATED( grid%alph_rand3d ) ) THEN DEALLOCATE(grid%alph_rand3d,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%alph_rand3d. ') endif NULLIFY(grid%alph_rand3d) ENDIF IF ( ASSOCIATED( grid%turbtype3d ) ) THEN DEALLOCATE(grid%turbtype3d,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%turbtype3d. ') endif NULLIFY(grid%turbtype3d) ENDIF IF ( ASSOCIATED( grid%evsntzm ) ) THEN DEALLOCATE(grid%evsntzm,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%evsntzm. ') endif NULLIFY(grid%evsntzm) ENDIF IF ( ASSOCIATED( grid%zmmtu ) ) THEN DEALLOCATE(grid%zmmtu,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%zmmtu. ') endif NULLIFY(grid%zmmtu) ENDIF IF ( ASSOCIATED( grid%evapcdp3d ) ) THEN DEALLOCATE(grid%evapcdp3d,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%evapcdp3d. ') endif NULLIFY(grid%evapcdp3d) ENDIF IF ( ASSOCIATED( grid%maxg2d ) ) THEN DEALLOCATE(grid%maxg2d,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%maxg2d. ') endif NULLIFY(grid%maxg2d) ENDIF IF ( ASSOCIATED( grid%rliq2 ) ) THEN DEALLOCATE(grid%rliq2,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%rliq2. ') endif NULLIFY(grid%rliq2) ENDIF IF ( ASSOCIATED( grid%qlten_cu ) ) THEN DEALLOCATE(grid%qlten_cu,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%qlten_cu. ') endif NULLIFY(grid%qlten_cu) ENDIF IF ( ASSOCIATED( grid%qtsrc_cu ) ) THEN DEALLOCATE(grid%qtsrc_cu,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%qtsrc_cu. ') endif NULLIFY(grid%qtsrc_cu) ENDIF IF ( ASSOCIATED( grid%tophgt_cu ) ) THEN DEALLOCATE(grid%tophgt_cu,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%tophgt_cu. ') endif NULLIFY(grid%tophgt_cu) ENDIF IF ( ASSOCIATED( grid%umf_cu ) ) THEN DEALLOCATE(grid%umf_cu,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%umf_cu. ') endif NULLIFY(grid%umf_cu) ENDIF IF ( ASSOCIATED( grid%flxrain_cu ) ) THEN DEALLOCATE(grid%flxrain_cu,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%flxrain_cu. ') endif NULLIFY(grid%flxrain_cu) ENDIF IF ( ASSOCIATED( grid%exit_uwcu_cu ) ) THEN DEALLOCATE(grid%exit_uwcu_cu,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%exit_uwcu_cu. ') endif NULLIFY(grid%exit_uwcu_cu) ENDIF IF ( ASSOCIATED( grid%limit_negcon_cu ) ) THEN DEALLOCATE(grid%limit_negcon_cu,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%limit_negcon_cu. ') endif NULLIFY(grid%limit_negcon_cu) ENDIF IF ( ASSOCIATED( grid%cldfra_mp ) ) THEN DEALLOCATE(grid%cldfra_mp,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%cldfra_mp. ') endif NULLIFY(grid%cldfra_mp) ENDIF IF ( ASSOCIATED( grid%lwup ) ) THEN DEALLOCATE(grid%lwup,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%lwup. ') endif NULLIFY(grid%lwup) ENDIF IF ( ASSOCIATED( grid%t_veg240 ) ) THEN DEALLOCATE(grid%t_veg240,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%t_veg240. ') endif NULLIFY(grid%t_veg240) ENDIF IF ( ASSOCIATED( grid%t2m_min ) ) THEN DEALLOCATE(grid%t2m_min,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%t2m_min. ') endif NULLIFY(grid%t2m_min) ENDIF IF ( ASSOCIATED( grid%h2osoi_liq4 ) ) THEN DEALLOCATE(grid%h2osoi_liq4,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%h2osoi_liq4. ') endif NULLIFY(grid%h2osoi_liq4) ENDIF IF ( ASSOCIATED( grid%h2osoi_ice1 ) ) THEN DEALLOCATE(grid%h2osoi_ice1,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%h2osoi_ice1. ') endif NULLIFY(grid%h2osoi_ice1) ENDIF IF ( ASSOCIATED( grid%t_soisno_s3 ) ) THEN DEALLOCATE(grid%t_soisno_s3,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%t_soisno_s3. ') endif NULLIFY(grid%t_soisno_s3) ENDIF IF ( ASSOCIATED( grid%t_soisno10 ) ) THEN DEALLOCATE(grid%t_soisno10,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%t_soisno10. ') endif NULLIFY(grid%t_soisno10) ENDIF IF ( ASSOCIATED( grid%t_lake2 ) ) THEN DEALLOCATE(grid%t_lake2,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%t_lake2. ') endif NULLIFY(grid%t_lake2) ENDIF IF ( ASSOCIATED( grid%h2osoi_vol4 ) ) THEN DEALLOCATE(grid%h2osoi_vol4,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%h2osoi_vol4. ') endif NULLIFY(grid%h2osoi_vol4) ENDIF IF ( ASSOCIATED( grid%sabvsubgrid ) ) THEN DEALLOCATE(grid%sabvsubgrid,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%sabvsubgrid. ') endif NULLIFY(grid%sabvsubgrid) ENDIF IF ( ASSOCIATED( grid%lake_icefrac3d ) ) THEN DEALLOCATE(grid%lake_icefrac3d,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%lake_icefrac3d. ') endif NULLIFY(grid%lake_icefrac3d) ENDIF IF ( ASSOCIATED( grid%tkmg3d ) ) THEN DEALLOCATE(grid%tkmg3d,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%tkmg3d. ') endif NULLIFY(grid%tkmg3d) ENDIF IF ( ASSOCIATED( grid%ssib_br ) ) THEN DEALLOCATE(grid%ssib_br,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%ssib_br. ') endif NULLIFY(grid%ssib_br) ENDIF IF ( ASSOCIATED( grid%ssib_lup ) ) THEN DEALLOCATE(grid%ssib_lup,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%ssib_lup. ') endif NULLIFY(grid%ssib_lup) ENDIF IF ( ASSOCIATED( grid%tkair ) ) THEN DEALLOCATE(grid%tkair,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%tkair. ') endif NULLIFY(grid%tkair) ENDIF IF ( ASSOCIATED( grid%ho1 ) ) THEN DEALLOCATE(grid%ho1,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%ho1. ') endif NULLIFY(grid%ho1) ENDIF IF ( ASSOCIATED( grid%ho2 ) ) THEN DEALLOCATE(grid%ho2,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%ho2. ') endif NULLIFY(grid%ho2) ENDIF IF ( ASSOCIATED( grid%ho3 ) ) THEN DEALLOCATE(grid%ho3,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%ho3. ') endif NULLIFY(grid%ho3) ENDIF IF ( ASSOCIATED( grid%ho4 ) ) THEN DEALLOCATE(grid%ho4,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%ho4. ') endif NULLIFY(grid%ho4) ENDIF IF ( ASSOCIATED( grid%alboldxy ) ) THEN DEALLOCATE(grid%alboldxy,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%alboldxy. ') endif NULLIFY(grid%alboldxy) ENDIF IF ( ASSOCIATED( grid%rtmassxy ) ) THEN DEALLOCATE(grid%rtmassxy,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%rtmassxy. ') endif NULLIFY(grid%rtmassxy) ENDIF IF ( ASSOCIATED( grid%neexy ) ) THEN DEALLOCATE(grid%neexy,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%neexy. ') endif NULLIFY(grid%neexy) ENDIF IF ( ASSOCIATED( grid%aparxy ) ) THEN DEALLOCATE(grid%aparxy,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%aparxy. ') endif NULLIFY(grid%aparxy) ENDIF IF ( ASSOCIATED( grid%shgxy ) ) THEN DEALLOCATE(grid%shgxy,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%shgxy. ') endif NULLIFY(grid%shgxy) ENDIF IF ( ASSOCIATED( grid%chleafxy ) ) THEN DEALLOCATE(grid%chleafxy,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%chleafxy. ') endif NULLIFY(grid%chleafxy) ENDIF IF ( ASSOCIATED( grid%qrfsxy ) ) THEN DEALLOCATE(grid%qrfsxy,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%qrfsxy. ') endif NULLIFY(grid%qrfsxy) ENDIF IF ( ASSOCIATED( grid%riverbedxy ) ) THEN DEALLOCATE(grid%riverbedxy,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%riverbedxy. ') endif NULLIFY(grid%riverbedxy) ENDIF IF ( ASSOCIATED( grid%qdewcxy ) ) THEN DEALLOCATE(grid%qdewcxy,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%qdewcxy. ') endif NULLIFY(grid%qdewcxy) ENDIF IF ( ASSOCIATED( grid%rainlsm ) ) THEN DEALLOCATE(grid%rainlsm,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%rainlsm. ') endif NULLIFY(grid%rainlsm) ENDIF IF ( ASSOCIATED( grid%acdewc ) ) THEN DEALLOCATE(grid%acdewc,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%acdewc. ') endif NULLIFY(grid%acdewc) ENDIF IF ( ASSOCIATED( grid%acqlat ) ) THEN DEALLOCATE(grid%acqlat,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%acqlat. ') endif NULLIFY(grid%acqlat) ENDIF IF ( ASSOCIATED( grid%acsnfro ) ) THEN DEALLOCATE(grid%acsnfro,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%acsnfro. ') endif NULLIFY(grid%acsnfro) ENDIF IF ( ASSOCIATED( grid%acshg ) ) THEN DEALLOCATE(grid%acshg,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%acshg. ') endif NULLIFY(grid%acshg) ENDIF IF ( ASSOCIATED( grid%aclwdnlsm ) ) THEN DEALLOCATE(grid%aclwdnlsm,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%aclwdnlsm. ') endif NULLIFY(grid%aclwdnlsm) ENDIF IF ( ASSOCIATED( grid%acc_etrani ) ) THEN DEALLOCATE(grid%acc_etrani,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%acc_etrani. ') endif NULLIFY(grid%acc_etrani) ENDIF IF ( ASSOCIATED( grid%harvest ) ) THEN DEALLOCATE(grid%harvest,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%harvest. ') endif NULLIFY(grid%harvest) ENDIF IF ( ASSOCIATED( grid%irnummi ) ) THEN DEALLOCATE(grid%irnummi,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%irnummi. ') endif NULLIFY(grid%irnummi) ENDIF IF ( ASSOCIATED( grid%kext_qip ) ) THEN DEALLOCATE(grid%kext_qip,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%kext_qip. ') endif NULLIFY(grid%kext_qip) ENDIF IF ( ASSOCIATED( grid%tempc ) ) THEN DEALLOCATE(grid%tempc,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%tempc. ') endif NULLIFY(grid%tempc) ENDIF IF ( ASSOCIATED( grid%fzlev ) ) THEN DEALLOCATE(grid%fzlev,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%fzlev. ') endif NULLIFY(grid%fzlev) ENDIF IF ( ASSOCIATED( grid%afwa_fits ) ) THEN DEALLOCATE(grid%afwa_fits,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%afwa_fits. ') endif NULLIFY(grid%afwa_fits) ENDIF IF ( ASSOCIATED( grid%afwa_ice ) ) THEN DEALLOCATE(grid%afwa_ice,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%afwa_ice. ') endif NULLIFY(grid%afwa_ice) ENDIF IF ( ASSOCIATED( grid%afwa_zlfc ) ) THEN DEALLOCATE(grid%afwa_zlfc,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%afwa_zlfc. ') endif NULLIFY(grid%afwa_zlfc) ENDIF IF ( ASSOCIATED( grid%t2_mean ) ) THEN DEALLOCATE(grid%t2_mean,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%t2_mean. ') endif NULLIFY(grid%t2_mean) ENDIF IF ( ASSOCIATED( grid%swdnt_mean ) ) THEN DEALLOCATE(grid%swdnt_mean,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%swdnt_mean. ') endif NULLIFY(grid%swdnt_mean) ENDIF IF ( ASSOCIATED( grid%hfx_diurn ) ) THEN DEALLOCATE(grid%hfx_diurn,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%hfx_diurn. ') endif NULLIFY(grid%hfx_diurn) ENDIF IF ( ASSOCIATED( grid%psfc_dtmp ) ) THEN DEALLOCATE(grid%psfc_dtmp,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%psfc_dtmp. ') endif NULLIFY(grid%psfc_dtmp) ENDIF IF ( ASSOCIATED( grid%swupb_dtmp ) ) THEN DEALLOCATE(grid%swupb_dtmp,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%swupb_dtmp. ') endif NULLIFY(grid%swupb_dtmp) ENDIF IF ( ASSOCIATED( grid%elecy ) ) THEN DEALLOCATE(grid%elecy,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%elecy. ') endif NULLIFY(grid%elecy) ENDIF IF ( ASSOCIATED( grid%c2h ) ) THEN DEALLOCATE(grid%c2h,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%c2h. ') endif NULLIFY(grid%c2h) ENDIF IF ( ASSOCIATED( grid%p_wif_may ) ) THEN DEALLOCATE(grid%p_wif_may,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%p_wif_may. ') endif NULLIFY(grid%p_wif_may) ENDIF IF ( ASSOCIATED( grid%w_wif_apr ) ) THEN DEALLOCATE(grid%w_wif_apr,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%w_wif_apr. ') endif NULLIFY(grid%w_wif_apr) ENDIF IF ( ASSOCIATED( grid%i_wif_mar ) ) THEN DEALLOCATE(grid%i_wif_mar,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%i_wif_mar. ') endif NULLIFY(grid%i_wif_mar) ENDIF IF ( ASSOCIATED( grid%b_wif_feb ) ) THEN DEALLOCATE(grid%b_wif_feb,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%b_wif_feb. ') endif NULLIFY(grid%b_wif_feb) ENDIF IF ( ASSOCIATED( grid%sealevelp ) ) THEN DEALLOCATE(grid%sealevelp,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%sealevelp. ') endif NULLIFY(grid%sealevelp) ENDIF IF ( ASSOCIATED( grid%rh ) ) THEN DEALLOCATE(grid%rh,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%rh. ') endif NULLIFY(grid%rh) ENDIF IF ( ASSOCIATED( grid%wp_tot_sum ) ) THEN DEALLOCATE(grid%wp_tot_sum,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%wp_tot_sum. ') endif NULLIFY(grid%wp_tot_sum) ENDIF IF ( ASSOCIATED( grid%ctopht ) ) THEN DEALLOCATE(grid%ctopht,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%ctopht. ') endif NULLIFY(grid%ctopht) ENDIF IF ( ASSOCIATED( grid%ts_lwp_tot ) ) THEN DEALLOCATE(grid%ts_lwp_tot,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%ts_lwp_tot. ') endif NULLIFY(grid%ts_lwp_tot) ENDIF IF ( ASSOCIATED( grid%ts_tau_qi_tot ) ) THEN DEALLOCATE(grid%ts_tau_qi_tot,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%ts_tau_qi_tot. ') endif NULLIFY(grid%ts_tau_qi_tot) ENDIF IF ( ASSOCIATED( grid%ts_swddnic ) ) THEN DEALLOCATE(grid%ts_swddnic,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%ts_swddnic. ') endif NULLIFY(grid%ts_swddnic) ENDIF IF ( ASSOCIATED( grid%td_zl ) ) THEN DEALLOCATE(grid%td_zl,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%td_zl. ') endif NULLIFY(grid%td_zl) ENDIF IF ( ASSOCIATED( grid%qr_iau ) ) THEN DEALLOCATE(grid%qr_iau,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%qr_iau. ') endif NULLIFY(grid%qr_iau) ENDIF IF ( ASSOCIATED( grid%rqiiauten ) ) THEN DEALLOCATE(grid%rqiiauten,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%rqiiauten. ') endif NULLIFY(grid%rqiiauten) ENDIF IF ( ASSOCIATED( grid%lakemask ) ) THEN DEALLOCATE(grid%lakemask,STAT=ierr) if (ierr.ne.0) then CALL wrf_error_fatal ( & 'frame/module_domain.f: Failed to deallocate grid%lakemask. ') endif NULLIFY(grid%lakemask) ENDIF END SUBROUTINE deallocs_3 !ENDOFREGISTRYGENERATEDINCLUDE