Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(ESMF_Info), | intent(inout) | :: | info | |||
integer, | intent(in) | :: | rootPet | |||
type(ESMF_KeywordEnforcer), | optional | :: | keywordEnforcer | |||
integer, | intent(out), | optional | :: | rc |
subroutine ESMF_InfoBroadcast(info, rootPet, keywordEnforcer, rc) ! !ARGUMENTS: type(ESMF_Info), intent(inout) :: info integer, intent(in) :: rootPet type(ESMF_KeywordEnforcer), optional:: keywordEnforcer ! must use keywords below integer, intent(out), optional :: rc ! ! !DESCRIPTION: ! Broadcast an \texttt{ESMF\_Info} object collectively across the current VM. ! ! Users wishing to synchronize via broadcast an attribute hierarchy associated ! with an ESMF object should consult the \texttt{ESMF\_InfoSync} documentation ! \ref{esmf_infosync} ! ! The arguments are: ! \begin{description} ! \item [info] ! The \texttt{ESMF\_Info} object that is the source (on \textit{rootPet}) or the ! destination object to populate (on all other PETs). On destination PETs, ! the structure of \textit{info} is overwritten with data from \textit{rootPet}. ! \item [rootPet] ! The root PET identifier. ! \item [{[rc]}] ! Return code; equals {\tt ESMF\_SUCCESS} if there are no errors. ! \end{description} !EOP integer :: localrc localrc = ESMF_FAILURE if (present(rc)) rc = ESMF_FAILURE call c_info_broadcast(info%ptr, rootPet, localrc) if (ESMF_LogFoundError(localrc, ESMF_ERR_PASSTHRU, ESMF_CONTEXT, rcToReturn=rc)) return if (present(rc)) rc = ESMF_SUCCESS end subroutine ESMF_InfoBroadcast