f_esmf_gridspec_inq Subroutine

subroutine f_esmf_gridspec_inq(filename, ndims, grid_dims, rc)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: filename
integer, intent(out) :: ndims
integer, intent(out) :: grid_dims(2)
integer, intent(out) :: rc

Source Code

  subroutine f_esmf_gridspec_inq(filename, ndims, grid_dims, rc)

    use ESMF_UtilTypesMod
    use ESMF_LogErrMod
    use ESMF_IOGridspecMod

    implicit none

    !------------------------------------------------------------------------------

    !arguments
    character(len=*), intent(in) :: filename
    integer, intent(out)         :: ndims
    integer, intent(out)         :: grid_dims(2)
    integer, intent(out)         :: rc

    ! Initialize return code; assume routine not implemented
    rc = ESMF_RC_NOT_IMPL

    ! Call into public interface
    call ESMF_GridspecInq(filename, ndims, grid_dims, rc=rc)

    ! Error handling
    if (ESMF_LogFoundError(rc, ESMF_ERR_PASSTHRU, &
        ESMF_CONTEXT, rcToReturn=rc)) return

    ! Return successfully
    rc = ESMF_SUCCESS

  end subroutine f_esmf_gridspec_inq