SetServ2 Subroutine

public subroutine SetServ2(gcomp, rc)

Arguments

Type IntentOptional Attributes Name
type(ESMF_GridComp) :: gcomp
integer, intent(out) :: rc

Source Code

  subroutine SetServ2(gcomp, rc)
    type(ESMF_GridComp) :: gcomp
    integer, intent(out) :: rc

    ! Initialize return code
    rc = ESMF_SUCCESS

    call ESMF_GridCompSetEntryPoint(gcomp, ESMF_METHOD_INITIALIZE, &
      userRoutine=my_init2, rc=rc)
    if (rc/=ESMF_SUCCESS) return ! bail out
      
    call ESMF_GridCompSetEntryPoint(gcomp, ESMF_METHOD_RUN, &
      userRoutine=my_run2, rc=rc)
    if (rc/=ESMF_SUCCESS) return ! bail out
      
    call ESMF_GridCompSetEntryPoint(gcomp, ESMF_METHOD_FINALIZE, &
      userRoutine=my_final2, rc=rc)
    if (rc/=ESMF_SUCCESS) return ! bail out

  end subroutine SetServ2