SetServices
— Sets IRF services for the RUT
Sets Initialize, Run and Finalize services.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(ESMF_GridComp), | intent(inout) | :: | GC |
gridded component |
||
integer, | optional | :: | RC |
return code |
SUBROUTINE SetServices ( GC, RC ) ! !ARGUMENTS: type(ESMF_GridComp), intent(INOUT) :: GC !! gridded component integer, optional :: RC !! return code ! !------------------------------------------------------------------------- __Iam__('SetServices') ! Local derived type aliases type(ESMF_Config) :: CF character(len=ESMF_MAXSTR) :: comp_name ! ------------ ! Get my name and set-up traceback handle ! --------------------------------------- call ESMF_GridCompGet( GC, name=comp_name, _RC ) Iam = trim(comp_name) // '::' // trim(Iam) ! Greetings ! --------- if (MAPL_am_I_root()) then print *, trim(Iam)//': ACTIVE' print * end if ! Set the Initialize, Run, Finalize entry points ! ---------------------------------------------- call MAPL_GridCompSetEntryPoint ( GC, ESMF_SETINIT, Initialize_, _RC ) call MAPL_GridCompSetEntryPoint ( GC, ESMF_SETRUN, Run_, _RC ) call MAPL_GridCompSetEntryPoint ( GC, ESMF_SETFINAL, Finalize_, _RC ) ! Add the ExtData as a child ! -------------------------- ExtData = MAPL_AddChild ( GC, NAME='ExtData', SS=ExtData_SetServices, _RC ) ! Generic Set Services ! -------------------- call MAPL_GenericSetServices ( GC, _RC ) ! All done ! -------- _RETURN(ESMF_SUCCESS) END SUBROUTINE SetServices