Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(ESMF_VMId), | intent(in) | :: | vmId(:) | |||
integer, | intent(out), | optional | :: | rc |
subroutine ESMF_VMIdPrint_v(vmId, rc) ! ! !ARGUMENTS: type(ESMF_VMId), intent(in) :: vmId(:) integer, intent(out), optional :: rc ! ! !DESCRIPTION: ! Print an ESMF_VMId object. ! ! The arguments are: ! \begin{description} ! \item[vmId] ! ESMF_VMId object ! \item[{[rc]}] ! Return code; equals {\tt ESMF\_SUCCESS} if there are no errors. ! \end{description} ! !EOPI !------------------------------------------------------------------------------ integer :: localrc ! local return code integer :: i ! initialize return code; assume routine not implemented localrc = ESMF_RC_NOT_IMPL if (present(rc)) rc = ESMF_RC_NOT_IMPL print *, 'ESMF_VMIdPrint: Fortran this pointer addresses:' print '(i0,a,z16)', (i, ': z', vmId(i)%this, i=1, size (vmId)) ! Flush before crossing language interface to ensure correct output order call ESMF_UtilIOUnitFlush (ESMF_UtilIOstdout, rc=localrc) if (ESMF_LogFoundError(localrc, ESMF_ERR_PASSTHRU, & ESMF_CONTEXT, rcToReturn=rc)) return do i=1, size(vmId) ! Call into the C++ interface call c_ESMC_VMIdPrint(vmId(i), localrc) if (ESMF_LogFoundError(localrc, ESMF_ERR_PASSTHRU, & ESMF_CONTEXT, rcToReturn=rc)) return enddo ! return successfully if (present(rc)) rc = ESMF_SUCCESS end subroutine ESMF_VMIdPrint_v