my_init Subroutine

private subroutine my_init(ccomp, importstate, exportstate, externalclock, rc)

Arguments

Type IntentOptional Attributes Name
type(ESMF_CplComp) :: ccomp
type(ESMF_State) :: importstate
type(ESMF_State) :: exportstate
type(ESMF_Clock) :: externalclock
integer, intent(out) :: rc

Source Code

    subroutine my_init(ccomp, importstate, exportstate, externalclock, rc)
      type(ESMF_CplComp) :: ccomp
      type(ESMF_State) :: importstate, exportstate
      type(ESMF_Clock) :: externalclock
      integer, intent(out) :: rc
     
      type(ESMF_State) :: state1, state2

      call ESMF_LogWrite("Coupler Initialize routine called", ESMF_LOGMSG_INFO)

      call ESMF_StateGet(importstate,  "GComp1 Import", state1, rc=rc)
      call ESMF_StateGet(importstate,  "GComp2 Import", state2, rc=rc)

      call ESMF_LogWrite("Coupler Initialize routine returning", ESMF_LOGMSG_INFO)
      rc=ESMF_SUCCESS

    end subroutine my_init