SetServ1 Subroutine

public subroutine SetServ1(gcomp, rc)

Arguments

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

Source Code

  subroutine SetServ1(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_init1, rc=rc)
    if (rc/=ESMF_SUCCESS) return ! bail out
      
    call ESMF_GridCompSetEntryPoint(gcomp, ESMF_METHOD_RUN, &
      userRoutine=my_run1, rc=rc)
    if (rc/=ESMF_SUCCESS) return ! bail out
      
    call ESMF_GridCompSetEntryPoint(gcomp, ESMF_METHOD_FINALIZE, &
      userRoutine=my_final1, rc=rc)
    if (rc/=ESMF_SUCCESS) return ! bail out
                                                     
  end subroutine SetServ1