1 subroutine da_wrfvar_finalize( gcomp, importState, exportState, clock, rc )
3 !-----------------------------------------------------------------------
4 ! Purpose: WRFVAR finalize routine.
8 ! importState Importstate
9 ! exportState Exportstate
10 ! clock External clock
11 ! rc Return code; equals ESMF_SUCCESS if there are no
12 ! errors, otherwise ESMF_FAILURE
13 !-----------------------------------------------------------------------
17 type(ESMF_GridComp), intent(inout) :: gcomp
18 type(ESMF_State), intent(inout) :: importState, exportState
19 type(ESMF_Clock), intent(inout) :: clock
20 integer, intent(out) :: rc
22 ! output wrfvar analysis
24 if ((config_flags%real_data_init_type == 1) .OR. &
25 (config_flags%real_data_init_type == 3)) then
26 call da_med_initialdata_output( head_grid , config_flags )
28 call med_shutdown_io ( head_grid , config_flags )
31 call da_message((/"wrfvar: SUCCESS COMPLETE WRFVAR"/))
34 ! return success status
37 end subroutine da_wrfvar_finalize