ESMF_GridCellWriteVTK Subroutine

public subroutine ESMF_GridCellWriteVTK(grid, filename, rc)

Arguments

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

Calls

proc~~esmf_gridcellwritevtk~~CallsGraph proc~esmf_gridcellwritevtk ESMF_GridCellWriteVTK c_esmc_gridcellio c_esmc_gridcellio proc~esmf_gridcellwritevtk->c_esmc_gridcellio proc~esmf_logfounderror ESMF_LogFoundError proc~esmf_gridcellwritevtk->proc~esmf_logfounderror 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_gridcellwritevtk~~CalledByGraph proc~esmf_gridcellwritevtk ESMF_GridCellWriteVTK program~esmf_gridcreateutest ESMF_GridCreateUTest program~esmf_gridcreateutest->proc~esmf_gridcellwritevtk

Source Code

    subroutine ESMF_GridCellWriteVTK(grid, filename, rc)
!
!
! !ARGUMENTS:
    type(ESMF_Grid), intent(inout)                :: grid
    character(len = *), intent(in)                :: filename
    integer,                intent(out), optional :: rc
!
! !DESCRIPTION:
!   Write the fields out for purview.  This function overcomes certain
!   difficulties in passing strings with an optional number of arguments.
!
!   \begin{description}
!   \item [grid]
!         grid to write
!   \item[{[staggerLoc]}]
!         stagger of field
!   \item[filename]
!         File (stub) to write results to
!   \item [{[rc]}]
!         Return code; equals {\tt ESMF\_SUCCESS} if there are no errors.
!   \end{description}
!
!EOPI
!------------------------------------------------------------------------------
    integer                 :: localrc      ! local return code
    integer                 :: minidx
    integer                 :: tmp_staggerloc
    type(ESMF_Array)        :: arrayEmpty


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

    ! Call into write
    call c_ESMC_GridCellIO(grid, 0, filename, localrc, &
         arrayEmpty, arrayEmpty, arrayEmpty, arrayEmpty, arrayEmpty, &
         arrayEmpty)
    if (ESMF_LogFoundError(localrc, ESMF_ERR_PASSTHRU, &
      ESMF_CONTEXT, rcToReturn=rc)) return

  end subroutine ESMF_GridCellWriteVTK