ESMF_PointListGet Subroutine

public subroutine ESMF_PointListGet(pointlist, numpts, maxpts, dims, rc)

Arguments

Type IntentOptional Attributes Name
type(ESMF_PointList), intent(in) :: pointlist
integer, intent(out), optional :: numpts
integer, intent(out), optional :: maxpts
integer, intent(out), optional :: dims
integer, intent(out), optional :: rc

Calls

proc~~esmf_pointlistget~~CallsGraph proc~esmf_pointlistget ESMF_PointListGet c_esmc_pointlistgetdims c_esmc_pointlistgetdims proc~esmf_pointlistget->c_esmc_pointlistgetdims c_esmc_pointlistgetmaxpts c_esmc_pointlistgetmaxpts proc~esmf_pointlistget->c_esmc_pointlistgetmaxpts c_esmc_pointlistgetnumpts c_esmc_pointlistgetnumpts proc~esmf_pointlistget->c_esmc_pointlistgetnumpts proc~esmf_imerr ESMF_IMErr proc~esmf_pointlistget->proc~esmf_imerr proc~esmf_logfounderror ESMF_LogFoundError proc~esmf_pointlistget->proc~esmf_logfounderror proc~esmf_pointlistgetinit ESMF_PointListGetInit proc~esmf_pointlistget->proc~esmf_pointlistgetinit proc~esmf_imerr->proc~esmf_logfounderror proc~esmf_initcheckdeep ESMF_InitCheckDeep proc~esmf_imerr->proc~esmf_initcheckdeep esmf_breakpoint esmf_breakpoint proc~esmf_logfounderror->esmf_breakpoint proc~esmf_logrc2msg ESMF_LogRc2Msg proc~esmf_logfounderror->proc~esmf_logrc2msg proc~esmf_logwrite ESMF_LogWrite proc~esmf_logfounderror->proc~esmf_logwrite c_esmc_loggeterrormsg c_esmc_loggeterrormsg proc~esmf_logrc2msg->c_esmc_loggeterrormsg c_esmc_vmwtime c_esmc_vmwtime proc~esmf_logwrite->c_esmc_vmwtime proc~esmf_logclose ESMF_LogClose proc~esmf_logwrite->proc~esmf_logclose proc~esmf_logflush ESMF_LogFlush proc~esmf_logwrite->proc~esmf_logflush proc~esmf_logopenfile ESMF_LogOpenFile proc~esmf_logwrite->proc~esmf_logopenfile proc~esmf_utiliounitflush ESMF_UtilIOUnitFlush proc~esmf_logwrite->proc~esmf_utiliounitflush proc~esmf_utilstring2array ESMF_UtilString2Array proc~esmf_logwrite->proc~esmf_utilstring2array proc~esmf_logclose->proc~esmf_logflush proc~esmf_logflush->proc~esmf_utiliounitflush proc~esmf_utilarray2string ESMF_UtilArray2String proc~esmf_logflush->proc~esmf_utilarray2string proc~esmf_logopenfile->proc~esmf_utiliounitflush proc~esmf_utiliounitget ESMF_UtilIOUnitGet proc~esmf_logopenfile->proc~esmf_utiliounitget

Called by

proc~~esmf_pointlistget~~CalledByGraph proc~esmf_pointlistget ESMF_PointListGet proc~test_pointlist_from_grid_nomask test_pointlist_from_grid_nomask proc~test_pointlist_from_grid_nomask->proc~esmf_pointlistget proc~test_pointlist_from_grid_wmask test_pointlist_from_grid_wmask proc~test_pointlist_from_grid_wmask->proc~esmf_pointlistget proc~test_pointlist_from_inputs test_pointlist_from_inputs proc~test_pointlist_from_inputs->proc~esmf_pointlistget proc~test_pointlist_from_locstream_nomask test_pointlist_from_locStream_nomask proc~test_pointlist_from_locstream_nomask->proc~esmf_pointlistget proc~test_pointlist_from_locstream_wmask test_pointlist_from_locStream_wmask proc~test_pointlist_from_locstream_wmask->proc~esmf_pointlistget proc~test_pointlist_from_mesh_elems_nomask test_pointlist_from_mesh_elems_nomask proc~test_pointlist_from_mesh_elems_nomask->proc~esmf_pointlistget proc~test_pointlist_from_mesh_elems_wmask test_pointlist_from_mesh_elems_wmask proc~test_pointlist_from_mesh_elems_wmask->proc~esmf_pointlistget proc~test_pointlist_from_mesh_nodes_nomask test_pointlist_from_mesh_nodes_nomask proc~test_pointlist_from_mesh_nodes_nomask->proc~esmf_pointlistget proc~test_pointlist_from_mesh_nodes_nomask_empty_proc test_pointlist_from_mesh_nodes_nomask_empty_proc proc~test_pointlist_from_mesh_nodes_nomask_empty_proc->proc~esmf_pointlistget proc~test_pointlist_from_mesh_nodes_wmask test_pointlist_from_mesh_nodes_wmask proc~test_pointlist_from_mesh_nodes_wmask->proc~esmf_pointlistget program~esmf_pointlistutest ESMF_PointListUTest program~esmf_pointlistutest->proc~test_pointlist_from_grid_nomask program~esmf_pointlistutest->proc~test_pointlist_from_grid_wmask program~esmf_pointlistutest->proc~test_pointlist_from_inputs program~esmf_pointlistutest->proc~test_pointlist_from_locstream_nomask program~esmf_pointlistutest->proc~test_pointlist_from_locstream_wmask program~esmf_pointlistutest->proc~test_pointlist_from_mesh_elems_nomask program~esmf_pointlistutest->proc~test_pointlist_from_mesh_elems_wmask program~esmf_pointlistutest->proc~test_pointlist_from_mesh_nodes_nomask program~esmf_pointlistutest->proc~test_pointlist_from_mesh_nodes_nomask_empty_proc program~esmf_pointlistutest->proc~test_pointlist_from_mesh_nodes_wmask

Source Code

  subroutine ESMF_PointListGet(pointlist, numpts, maxpts, dims, rc)
!
! !ARGUMENTS:
    type(ESMF_PointList), intent(in) :: pointlist
    integer, intent(out), optional :: numpts
    integer, intent(out), optional :: maxpts
    integer, intent(out), optional :: dims
    integer, intent(out), optional :: rc
!
! !DESCRIPTION:
!     Returns information about an {\tt ESMF\_PointList}.
!
!     The arguments are:
!     \begin{description}
!     \item[pointlist]
!          {\tt ESMF\_PointList} to be queried.
!     \item[{[numpts]}]
!          Returns current number of points.
!     \item[{[maxpts]}]
!          Returns maximum number of points allowed.
!     \item[{[dims]}]
!          Returns number of dimensions for coordinates.
!     \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)

    if (present(numpts)) then
      call c_ESMC_PointListGetNumPts(pointlist, numpts, localrc)
      if (ESMF_LogFoundError(localrc, &
        ESMF_ERR_PASSTHRU, &
        ESMF_CONTEXT, rcToReturn=rc)) return
    endif

    if (present(maxpts)) then
      call c_ESMC_PointListGetMaxPts(pointlist, maxpts, localrc)
      if (ESMF_LogFoundError(localrc, &
        ESMF_ERR_PASSTHRU, &
        ESMF_CONTEXT, rcToReturn=rc)) return
    endif

    if (present(dims)) then
      call c_ESMC_PointListGetDims(pointlist, dims, localrc)
      if (ESMF_LogFoundError(localrc, &
        ESMF_ERR_PASSTHRU, &
        ESMF_CONTEXT, rcToReturn=rc)) return
    endif


    ! Return successfully
    if (present(rc)) rc = ESMF_SUCCESS

  end subroutine ESMF_PointListGet