VTM_END_XML Function

public function VTM_END_XML() result(E_IO)

This function is used to finalize the VTM file opened. The \LIBVTKIO manages the file unit without the user's action.

Arguments

None

Return Value integer(kind=I4P)


Contents

Source Code


Source Code

  function VTM_END_XML() result(E_IO)
  !---------------------------------------------------------------------------------------------------------------------------------
  !!This function is used to finalize the VTM file opened. The \LIBVTKIO manages the file unit without the user's action.
  !---------------------------------------------------------------------------------------------------------------------------------

  !---------------------------------------------------------------------------------------------------------------------------------
  implicit none
  integer(I4P):: E_IO      ! Input/Output inquiring flag: $0$ if IO is done, $> 0$ if IO is not done
  !---------------------------------------------------------------------------------------------------------------------------------

  !---------------------------------------------------------------------------------------------------------------------------------
  vtm_indent = vtm_indent - 2
  write(unit=Unit_VTM,fmt='(A)',iostat=E_IO)repeat(' ',vtm_indent)//'</vtkMultiBlockDataSet>'
  write(unit=Unit_VTM,fmt='(A)',iostat=E_IO)'</VTKFile>'
  close(unit=Unit_VTM)
  return
  !---------------------------------------------------------------------------------------------------------------------------------
  endfunction VTM_END_XML