Afivo  0.3
Data Types | Functions/Subroutines | Variables
m_vtk Module Reference

This file is a modification of code found in Lib_VTK_IO. More...

Data Types

type  vtk_t
 

Functions/Subroutines

subroutine vtk_ini_xml (vtkf, filename, vtk_type)
 
subroutine vtk_unstr_geo_xml (vtkf, coords, n_nodes, n_cells, n_dim, cycl, time)
 
subroutine vtk_unstr_geo_xml_close (vtkf)
 
subroutine vtk_unstr_con_xml (vtkf, connects, offsets, cell_types, n_cells)
 
subroutine vtk_dat_xml (vtkf, xml_name, true_is_open)
 
subroutine vtk_var_r8_xml (vtkf, varname, var, n_data)
 
subroutine vtk_end_xml (vtkf)
 

Variables

integer, parameter dp = kind(0.0d0)
 
integer, parameter sp = kind(0.0)
 
integer, parameter buf_len = 200
 
character, parameter endl = char(10)
 
integer, parameter indent_spaces = 2
 
integer, parameter bytes_i4 = 4
 
integer, parameter bytes_r4 = 4
 
integer, parameter bytes_r8 = 8
 

Detailed Description

This file is a modification of code found in Lib_VTK_IO.

For the original code, see https://github.com/szaghi/Lib_VTK_IO. I have extracted the parts that I needed and simplified them a bit. The license for this file is thus also GPLv3.

Author Lib_VTK_IO: Stefano Zaghi, modifications: Jannis Teunissen

Todo:
Document this module

Function/Subroutine Documentation

◆ vtk_ini_xml()

subroutine m_vtk::vtk_ini_xml ( type(vtk_t), intent(out)  vtkf,
character(len=*), intent(in)  filename,
character(len=*), intent(in)  vtk_type 
)

Definition at line 35 of file m_vtk.f90.

◆ vtk_unstr_geo_xml()

subroutine m_vtk::vtk_unstr_geo_xml ( type(vtk_t), intent(inout)  vtkf,
real(dp), dimension(:), intent(in)  coords,
integer, intent(in)  n_nodes,
integer, intent(in)  n_cells,
integer, intent(in)  n_dim,
integer, intent(in)  cycl,
real(dp), intent(in)  time 
)

Definition at line 56 of file m_vtk.f90.

◆ vtk_unstr_geo_xml_close()

subroutine m_vtk::vtk_unstr_geo_xml_close ( type(vtk_t), intent(inout)  vtkf)

Definition at line 109 of file m_vtk.f90.

◆ vtk_unstr_con_xml()

subroutine m_vtk::vtk_unstr_con_xml ( type(vtk_t), intent(inout)  vtkf,
integer, dimension(:), intent(in)  connects,
integer, dimension(:), intent(in)  offsets,
integer, dimension(:), intent(in)  cell_types,
integer, intent(in)  n_cells 
)
Parameters
[in]n_cellsNumber of cells.
[in]connectsMesh connectivity.
[in]offsetsCell offset.
[in]cell_typesVTK cell type.

Definition at line 114 of file m_vtk.f90.

◆ vtk_dat_xml()

subroutine m_vtk::vtk_dat_xml ( type(vtk_t), intent(inout)  vtkf,
character(*), intent(in)  xml_name,
logical, intent(in)  true_is_open 
)

Definition at line 155 of file m_vtk.f90.

◆ vtk_var_r8_xml()

subroutine m_vtk::vtk_var_r8_xml ( type(vtk_t), intent(inout)  vtkf,
character(*), intent(in)  varname,
real(dp), dimension(:), intent(in)  var,
integer, intent(in)  n_data 
)
Parameters
[in]n_dataNumber of cells or nodes.
[in]varnameVariable name.
[in]varVariable to be saved [1:n_cells_NN].

Definition at line 171 of file m_vtk.f90.

◆ vtk_end_xml()

subroutine m_vtk::vtk_end_xml ( type(vtk_t), intent(inout)  vtkf)

Definition at line 189 of file m_vtk.f90.

Variable Documentation

◆ dp

integer, parameter m_vtk::dp = kind(0.0d0)

Definition at line 14 of file m_vtk.f90.

◆ sp

integer, parameter m_vtk::sp = kind(0.0)

Definition at line 15 of file m_vtk.f90.

◆ buf_len

integer, parameter m_vtk::buf_len = 200

Definition at line 16 of file m_vtk.f90.

◆ endl

character, parameter m_vtk::endl = char(10)

Definition at line 18 of file m_vtk.f90.

◆ indent_spaces

integer, parameter m_vtk::indent_spaces = 2

Definition at line 19 of file m_vtk.f90.

◆ bytes_i4

integer, parameter m_vtk::bytes_i4 = 4

Definition at line 20 of file m_vtk.f90.

◆ bytes_r4

integer, parameter m_vtk::bytes_r4 = 4

Definition at line 21 of file m_vtk.f90.

◆ bytes_r8

integer, parameter m_vtk::bytes_r8 = 8

Definition at line 22 of file m_vtk.f90.