Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
logical, | intent(in) | :: | content | |||
type(ESMF_KeywordEnforcer), | optional | :: | keywordEnforcer | |||
integer, | intent(out), | optional | :: | rc |
function ESMF_HConfigCreateLogical(content, keywordEnforcer, rc) type(ESMF_HConfig) :: ESMF_HConfigCreateLogical logical, intent(in) :: content type(ESMF_KeywordEnforcer), optional:: keywordEnforcer ! must use keywords below integer, intent(out), optional :: rc integer :: localrc ! local return code character(len=:), allocatable :: sContent ! initialize return code; assume routine not implemented localrc = ESMF_RC_NOT_IMPL if (present(rc)) rc = ESMF_RC_NOT_IMPL sContent = "False" if (content) sContent = "True" ESMF_HConfigCreateLogical = ESMF_HConfigCreate(content=sContent, rc=localrc) if (ESMF_LogFoundError(localrc, ESMF_ERR_PASSTHRU, & ESMF_CONTEXT, rcToReturn=rc)) return ! return successfully if (present(rc)) rc = ESMF_SUCCESS end function ESMF_HConfigCreateLogical