ESMF_PointListWriteVTK Subroutine

public subroutine ESMF_PointListWriteVTK(pointlist, filename, rc)

Arguments

Type IntentOptional Attributes Name
type(ESMF_PointList), intent(in) :: pointlist
character(len=*), intent(in) :: filename
integer, intent(out), optional :: rc

Source Code

  subroutine ESMF_PointListWriteVTK(pointlist, filename, rc)
!
! !ARGUMENTS:
    type(ESMF_PointList), intent(in)            :: pointlist
    character(*),         intent(in)            :: filename
    integer,              intent(out), optional :: rc
!
! !DESCRIPTION:
!   Print information about an {\tt ESMF\_PointList} into a VTK file.
!
!   The arguments are:
!   \begin{description}
!   \item[pointlist]
!     {\tt ESMF\_PointList} to print contents of.
!   \item[{[rc]}]
!     Return code; equals {\tt ESMF\_SUCCESS} if there are no errors.
!   \end{description}
!
!EOPI
!------------------------------------------------------------------------------
    integer                 :: localrc      ! local return code

    ! initialize return code; assume routine not implemented
    localrc = ESMF_RC_NOT_IMPL
    if (present(rc)) rc = ESMF_RC_NOT_IMPL

    ESMF_INIT_CHECK_DEEP(ESMF_PointListGetInit,pointlist,rc)

    call ESMF_UtilIOUnitFlush (ESMF_UtilIOStdout, rc=localrc)
    if (ESMF_LogFoundError(localrc, ESMF_ERR_PASSTHRU, &
      ESMF_CONTEXT, rcToReturn=rc)) return

    call c_ESMC_PointListWriteVTK(pointlist, filename, localrc)
    if (ESMF_LogFoundError(localrc, &
      ESMF_ERR_PASSTHRU, &
      ESMF_CONTEXT, rcToReturn=rc)) return

    ! Set return values
    if (present(rc)) rc = ESMF_SUCCESS

  end subroutine ESMF_PointListWriteVTK