Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in), | optional | :: | prefix | ||
type(ESMF_LogMsg_Flag), | intent(in), | optional | :: | logMsgFlag | ||
type(ESMF_Log), | intent(inout), | optional | :: | log | ||
integer, | intent(out), | optional | :: | rc |
subroutine ESMF_VMLogMemInfo(prefix, logMsgFlag, log, rc) ! ! !ARGUMENTS: character (len=*), intent(in), optional :: prefix type(ESMF_LogMsg_Flag), intent(in), optional :: logMsgFlag type(ESMF_Log), intent(inout), optional :: log integer, intent(out), optional :: rc ! ! !DESCRIPTION: ! Log memory info from the system for this PET. ! ! The arguments are: ! \begin{description} ! \item [{[prefix]}] ! String to prefix the memory info message. Default is no prefix. ! \item [{[logMsgFlag]}] ! Type of log message generated. See section \ref{const:logmsgflag} for ! a list of valid message types. Default is {\tt ESMF\_LOGMSG\_INFO}. ! \item [{[log]}] !TODO: BROKEN!!! ! {\tt ESMF\_Log} object that can be used instead of the default Log. ! Default is to use the default log. ! \item[{[rc]}] ! Return code; equals {\tt ESMF\_SUCCESS} if there are no errors. ! \end{description} ! !EOPI !------------------------------------------------------------------------------ integer :: localrc ! local return code type(ESMF_LogMsg_Flag) :: logMsg ! initialize return code; assume routine not implemented localrc = ESMF_RC_NOT_IMPL if (present(rc)) rc = ESMF_RC_NOT_IMPL ! deal with optionl logMsgFlag logMsg = ESMF_LOGMSG_INFO ! default if (present(logMsgFlag)) logMsg = logMsgFlag ! Call into the C++ interface. call c_esmc_vmlogmeminfo(prefix, logMsg, log, localrc) if (ESMF_LogFoundError(localrc, ESMF_ERR_PASSTHRU, & ESMF_CONTEXT, rcToReturn=rc)) return ! return successfully if (present(rc)) rc = ESMF_SUCCESS end subroutine ESMF_VMLogMemInfo