Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(ESMF_State), | intent(in) | :: | state | |||
integer, | intent(out) | :: | itemCount | |||
integer, | intent(out) | :: | rc |
subroutine f_esmf_stategetnumitems(state, itemCount, rc) #undef ESMF_METHOD #define ESMF_METHOD "f_esmf_stategetnumitems" use ESMF_UtilTypesMod use ESMF_LogErrMod use ESMF_StateTypesMod use ESMF_BaseMod ! ESMF base class use ESMF_StateMod use ESMF_ArrayCreateMod implicit none type(ESMF_State), intent(in) :: state !in integer, intent(out) :: itemCount !out integer, intent(out) :: rc !out ! local variable integer :: localrc ! Initialize return code; assume routine not implemented rc = ESMF_RC_NOT_IMPL ! call ESMF_StateGetInfo(state=state, itemCount=itemCount, rc=rc) call ESMF_StateGet(state=state, itemCount=itemCount, rc=localrc) if (ESMF_LogFoundError(localrc, ESMF_ERR_PASSTHRU, & ESMF_CONTEXT, rcToReturn=rc)) return rc = localrc end subroutine f_esmf_stategetnumitems