Appearance
vtk_fortran_vtk_file_vtkhdf_writer
VTK file VTKHDF writer: an HDF5 file in the VTKHDF layout (every topology of
vtk_file).
The writer of vtk_file%initialize(format='VTKHDF', ...): the same calls as the XML formats write the group /VTKHDF of an HDF5 file (VTKHDF specification 2.x, read by VTK >= 9.1 and ParaView): the attributes Version, Type, WholeExtent, Origin, Spacing, Direction, the groups PointData, CellData and FieldData, one dataset per data array. A Fortran array x(n_components, i, j, k) is stored as it is in memory: it is the VTKHDF dataset of shape [k, j, i, n_components] (C order), so nothing is transposed. With compressor='zlib' the datasets are deflated. The datasets that grow or are deflated are chunked by whole rows, at most chunk_bytes (the writer state set by vtk_file%initialize(..., chunk_bytes=), default 1 MiB) and the rows of the first write, at least one row (dataset_write of vtk_fortran_hdf5); every call creating one passes chunk_bytes=self%chunk_bytes.
Supported: ImageData, RectilinearGrid and StructuredGrid, one piece each (its extent is the whole extent; the coordinates of a RectilinearGrid are XCoordinates, YCoordinates, ZCoordinates, the points of a StructuredGrid the dataset Points of shape [k, j, i, 3], both with the attribute Dimensions, VTKHDF 2.7); UnstructuredGrid, each piece a partition (its counts in NumberOfPoints, NumberOfCells, NumberOfConnectivityIds, its points, cells and arrays appended to datasets shared by the pieces; the offsets written from 0, VTKFortran's end offsets converted), ids and counts I4P or I8P; polyhedra (face, faceoffset of write_connectivity) as FaceConnectivity, FaceOffsets, PolyhedronToFaces, PolyhedronOffsets with their counts per piece (VTKHDF 2.5; zero entries for the pieces without polyhedra, the earlier ones written when the first polyhedra come); PolyData, each piece a partition as well, its cells in the four groups Vertices, Lines, Strips, Polygons (each with its own counts, connectivity and offsets; a block not given has no cells, and its group gets zero entries); data arrays of every kind and layout, unsigned arrays, active arrays (Attribute, VTKHDF 2.6), numeric field data. Refused (non-zero error, message on stderr): a volatile file, string field data (the VTK reader crashes on them), zlib without the HDF5 deflate filter, an array missing from a piece or new after the first one, a data name (point, cell or field data) empty or containing / or . (VTKHDF names cannot: no renaming, the code reading the file back would not find the array), and every call when the library is built without HDF5 (VTKFORTRAN_USE_HDF5).
Time series (VTKHDF Steps): a file whose first output starts with write_step(time) is one; each output then starts with write_step, its pieces appended as for a single dataset (the grids get a time axis, their arrays [t, k, j, i]), and the Steps entries of the open step are rewritten at the end of every piece (and of every data group of a step without pieces), with NSteps and Version, and the file flushed: the file is valid after every piece.
What does not change is stored once, the Steps offsets of a step repeating those of the step before:
- the mesh: a step after the first one without pieces (UnstructuredGrid, PolyData:
write_step, then its data groups opened directly,write_dataarray(location=..., action='open')) reuses all the parts of the step before; a RectilinearGrid or StructuredGrid piece withoutwrite_georeuses the coordinates or points of the step before (an ImageData has no geometry to store); - an array: an array not written in a step reuses its values of the step before; that is possible in a step of a grid and in a step without pieces; a step with pieces writes every point and cell array (its parts may differ from those of the arrays' step). The arrays of a step without pieces hold the points (cells) of all the parts reused, in their order. A field data array not written in a step reuses its values too. The first step writes everything; an array first written at a later step is refused. The offsets of the point and cell data are written for every array (
PointDataOffsets,CellDataOffsets): tuples, time slices for a grid.
From MPI ranks (set_comm): an UnstructuredGrid or PolyData piece per rank (a partition, appended after the ranks before; in a time series a piece per rank in each step, every rank calling write_step with the same time, the Steps entries the totals of all the ranks, written once; reopen by the ranks for a parallel restart; polyhedra on any ranks; compressed datasets with an HDF5 of parallel filtered writes, see set_comm), or a region per rank of one ImageData, RectilinearGrid or StructuredGrid (write_piece(nx1, ..., nz2) with the rank's sub-extent): the datasets are created with the whole extent, by every rank, and each rank writes the block of its region, the points of a boundary shared with the next region excluded (that region writes them), the coordinates of a RectilinearGrid entries no rank before has. The regions are checked when they start (gathered on every rank): inside the whole extent, cells not overlapping, covering it; an empty region (nx2 < nx1, ...) writes nothing. A refusal by one rank of its own values (their size, say) is agreed by all the ranks (agree) before the collective calls: every rank returns the error, none is left waiting.
reopen (vtk_file%initialize(..., action='append'); a refused one leaves the file as it was) continues a time series written before (a restart): the state is read from the file, and every dataset is trimmed to the pieces recorded by the last complete piece (a run interrupted in a piece leaves the data of that piece, dropped).
Table (mesh_topology='Table', VTKHDF 2.8): no pieces; its columns are written with write_dataarray(location='row', action='open'), write_dataarray(data_name, x) (any kind, components as for the other data arrays: RowData/<name>, [rows, components] in C order), write_dataarray(location='row', action='close'): every column the same rows, and NumberOfRows. In a time series every step writes every column (the same columns as the first step), the rows of each step appended (NumberOfRows one entry per step, Steps/RowDataOffsets/<column>, the spelling VTK 9.7.2 writes and reads, not the RowDataOffets of the specification page), the file valid after each step.
OverlappingAMR (mesh_topology='OverlappingAMR', origin of vtk_file%initialize its origin): each level is started by write_level(level, spacing) (0, 1, ... in order; a level can be started again, with its spacing), its boxes are pieces, write_piece(nx1, nx2, ny1, ny2, nz1, nz2) (the point extent of the box in the indices of the level, at least one cell along every axis, a box of a finer level inside the bounds of the boxes of level 0), their point and cell data ([n] or [n, components], x fastest), write_piece(). The layout, as VTK 9.7.2 reads it: Origin, GridDescriptionXYZ, the groups Level<n> with Spacing, AMRBox (one row per box: the cells nx1, nx2-1, ny1, ny2-1, nz1, nz2-1) and the data of the boxes appended in PointData, CellData; every box of every level writes the same arrays. In a time series every step writes its levels and boxes again (Steps/Level<n>/AMRBoxOffsets, NumberOfAMRBoxes, PointDataOffsets/<name>, CellDataOffsets/<name>: the names of the specification since VTKHDF 2.3, so Version is at least 2.3: VTK 9.7.2 reads the singular names of 2.2 only below 2.3), the file valid after each box. Refused: field data, comm, a step without boxes, the XML formats.
HyperTreeGrid (mesh_topology='HyperTreeGrid', nx1...nz2 the points of its root grid, branch_factor of vtk_file%initialize 2 or 3): one piece, write_piece(nx1, ..., nz2), its root coordinates write_geo(x, y, z) (as a RectilinearGrid: XCoordinates, YCoordinates, ZCoordinates), its trees write_tree(tree_id, descriptor, mask) (the tree of root cell tree_id = i + (nx-1)(j + (ny-1)k), from 0; descriptor the refinement of its cells, breadth first, the children of a cell x fastest, every depth but the deepest, whose cells are all leaves; mask one bit per cell, breadth first, a refined cell not masked), then its cell data (one value per cell of the trees, in the order of the trees written, breadth first in each), write_piece(). The layout, as VTK 9.7.2 writes it: Dimensions, BranchFactor, Descriptors and Mask (bits packed MSB first, contiguous across the trees), DescriptorsSize (bits), TreeIds, DepthPerTree, NumberOfCellsPerTreeDepth, NumberOfTrees, NumberOfDepths, NumberOfCells, CellData. A time series (write_step): every step writes its piece (its coordinates, trees and cell data), appended to the datasets of the steps before, each step's bits from a new byte, the mask always; Steps holds PartOffsets, NumberOfParts, X/Y/ZCoordinatesOffsets, TreeIdsOffsets, DepthPerTreeOffsets (trees), NumberOfCellsPerTreeDepthOffsets, DescriptorsOffsets, MaskOffsets (bytes), CellDataOffsets/<name>, as VTK 9.7.2 writes them; the file is valid after each step. Refused: point data, field data, a step without its piece, comm, action='append', the XML formats.
Version is written by finalize (and after every piece of a time series): 2.0, 2.5 with polyhedra, 2.6 when an active array is marked, 2.7 for a RectilinearGrid or a StructuredGrid, 2.8 for a Table, 2.3 for an OverlappingAMR time series, 2.4 for a HyperTreeGrid (the highest of the features written).
Source: src/lib/vtk_fortran_vtk_file_vtkhdf_writer.f90
Dependencies
Contents
- active_array
- vtkhdf_writer
- free
- get_xml_volatile
- record_array
- region_block
- axis_runs
- points_block
- set_comm
- reset
- append_I8P
- append_bits
- initialize
- finalize
- write_piece_start_tag
- write_piece_end_tag
- write_step
- write_dataarray_location_tag
- write_level
- write_tree
- set_interface
- write_fielddata_tag
- write_fielddata1_rank0
- write_fielddata1_rank1
- set_component_names
- write_fielddata1_rank2
- write_dataarray_strings
- write_dataarray1_rank1_R8P
- write_dataarray1_rank1_R4P
- write_dataarray1_rank1_I8P
- write_dataarray1_rank1_I4P
- write_dataarray1_rank1_I2P
- write_dataarray1_rank1_I1P
- write_dataarray1_rank2_R8P
- write_dataarray1_rank2_R4P
- write_dataarray1_rank2_I8P
- write_dataarray1_rank2_I4P
- write_dataarray1_rank2_I2P
- write_dataarray1_rank2_I1P
- write_dataarray1_rank3_R8P
- write_dataarray1_rank3_R4P
- write_dataarray1_rank3_I8P
- write_dataarray1_rank3_I4P
- write_dataarray1_rank3_I2P
- write_dataarray1_rank3_I1P
- write_dataarray1_rank4_R8P
- write_dataarray1_rank4_R4P
- write_dataarray1_rank4_I8P
- write_dataarray1_rank4_I4P
- write_dataarray1_rank4_I2P
- write_dataarray1_rank4_I1P
- write_dataarray3_rank1_R8P
- write_dataarray3_rank1_R4P
- write_dataarray3_rank1_I8P
- write_dataarray3_rank1_I4P
- write_dataarray3_rank1_I2P
- write_dataarray3_rank1_I1P
- write_dataarray3_rank3_R8P
- write_dataarray3_rank3_R4P
- write_dataarray3_rank3_I8P
- write_dataarray3_rank3_I4P
- write_dataarray3_rank3_I2P
- write_dataarray3_rank3_I1P
- write_dataarray6_rank1_R8P
- write_dataarray6_rank1_R4P
- write_dataarray6_rank1_I8P
- write_dataarray6_rank1_I4P
- write_dataarray6_rank1_I2P
- write_dataarray6_rank1_I1P
- write_dataarray6_rank3_R8P
- write_dataarray6_rank3_R4P
- write_dataarray6_rank3_I8P
- write_dataarray6_rank3_I4P
- write_dataarray6_rank3_I2P
- write_dataarray6_rank3_I1P
- write_dataarray_unsigned_I8P
- write_dataarray_unsigned_I4P
- write_dataarray_unsigned_I2P
- write_dataarray_unsigned_I1P
- write_geo_unst_data1_rank2_R8P
- write_geo_unst_data3_rank1_R8P
- write_geo_unst_data1_rank2_R8P_I8P
- write_geo_unst_data3_rank1_R8P_I8P
- write_geo_unst_data1_rank2_R4P
- write_geo_unst_data3_rank1_R4P
- write_geo_unst_data1_rank2_R4P_I8P
- write_geo_unst_data3_rank1_R4P_I8P
- write_connectivity_I4P
- write_connectivity_I8P
- write_piece_start_tag_unst
- write_piece_start_tag_unst_I8P
- write_piece_start_tag_poly
- write_piece_start_tag_poly_I8P
- write_polydata_cells
- write_geo_rect_data3_rank1_R8P
- write_geo_strg_data1_rank2_R8P
- write_geo_strg_data1_rank4_R8P
- write_geo_strg_data3_rank1_R8P
- write_geo_strg_data3_rank3_R8P
- write_geo_rect_data3_rank1_R4P
- write_geo_strg_data1_rank2_R4P
- write_geo_strg_data1_rank4_R4P
- write_geo_strg_data3_rank1_R4P
- write_geo_strg_data3_rank3_R4P
- put_R8P
- put_R4P
- put_I8P
- put_I4P
- put_I2P
- put_I1P
- store_R8P
- store_R4P
- store_I8P
- store_I4P
- store_I2P
- store_I1P
- put_points_R8P
- put_points_R4P
- put_cells_I4P
- put_cells_I8P
- put_coordinates_R8P
- put_axis_R8P
- put_grid_points_R8P
- put_coordinates_R4P
- put_axis_R4P
- put_grid_points_R4P
- put_faces_I4P
- put_faces_I8P
- put_block_I4P
- put_block_I8P
- check_cells
- check_geo
- check_grid_geo
- close_group
- dataset_dims
- end_partition
- grid_points
- deflate_level
- is_partitioned
- mark_active
- open_group
- add_face_totals
- no_faces
- poly_block
- poly_blocks
- put_strings
- check_arrays
- is_reusing
- start_region
- agree_name
- agree
- end_table
- open_level
- start_box
- end_box
- end_trees
- is_table_complete
- is_recorded
- end_reusing
- is_written_in_step
- roll_arrays
- reopen
- reopen_file
- start_partition
- start_polyhedra
- step_entry
- write_steps
- store_zeros
- array_tuples
- pack_bits
- refuse
- upper
Variables
| Name | Type | Attributes | Description |
|---|---|---|---|
ROLES | character(len=*) | parameter | Roles of active arrays (VTK's names). |
DEFLATE_LEVEL_ZLIB | integer(kind=I4P) | parameter | Deflate level of compressed datasets (the zlib default). |
TOPOLOGY_IMAGE | integer(kind=I4P) | parameter | ImageData. |
TOPOLOGY_UNSTRUCTURED | integer(kind=I4P) | parameter | UnstructuredGrid. |
TOPOLOGY_POLY | integer(kind=I4P) | parameter | PolyData. |
TOPOLOGY_RECT | integer(kind=I4P) | parameter | RectilinearGrid. |
TOPOLOGY_STRG | integer(kind=I4P) | parameter | StructuredGrid. |
TOPOLOGY_TABLE | integer(kind=I4P) | parameter | Table. |
TOPOLOGY_AMR | integer(kind=I4P) | parameter | OverlappingAMR. |
TOPOLOGY_HTG | integer(kind=I4P) | parameter | HyperTreeGrid. |
CELL_POLYHEDRON | integer(kind=I1P) | parameter | VTK type of a polyhedron. |
STEP_GROUPS | character(len=*) | parameter | Groups of |
BLOCKS | character(len=*) | parameter | Groups of the PolyData cells. |
VTK_COLUMN | integer(kind=I8P) | parameter | Column of each block in the rows of Steps. |
NAMES_SEPARATOR | character(len=*) | parameter | Separator of the names of a list (a name has no NUL). |
ZERO_BLOCK | integer(kind=I8P) | parameter | Zeros appended at once (polyhedra starting late, with comm). |
Derived Types
active_array
Name of the active array of a role.
Components
| Name | Type | Attributes | Description |
|---|---|---|---|
name | character(len=:) | allocatable | Array name. |
vtkhdf_writer
VTKHDF writer (every topology of vtk_file).
Inheritance
Extends: vtk_writer_abstract
Components
| Name | Type | Attributes | Description |
|---|---|---|---|
origin | real(kind=R8P) | Origin of ImageData topologies. | |
spacing | real(kind=R8P) | Spacing of ImageData topologies. | |
direction | real(kind=R8P) | Axes directions of ImageData topologies (row-major 3x3). | |
is_direction_set | logical | Write the Direction of ImageData topologies. | |
is_uint64 | logical | Use UInt64 (instead of UInt32) bytes count headers. | |
is_compressed | logical | Compress (zlib) the binary data. | |
branch_factor | integer(kind=I4P) | Branch factor of a HyperTreeGrid (VTKHDF): 2 or 3. | |
chunk_bytes | integer(kind=I8P) | Bytes of a chunk of the VTKHDF datasets at most (default | |
file_id | integer(kind=hid_kind) | File. | |
root | integer(kind=hid_kind) | Group /VTKHDF. | |
group | integer(kind=hid_kind) | Open data group (PointData, CellData, FieldData). | |
group_name | character(len=:) | allocatable | Name of the open data group, empty if none. |
whole_extent | integer(kind=I4P) | Whole extent: nx1, nx2, ny1, ny2, nz1, nz2. | |
n_pieces | integer(kind=I4P) | Pieces started (with comm, the partitions of all the ranks). | |
local_pieces | integer(kind=I4P) | Pieces started by this process. | |
step_local | integer(kind=I4P) | Pieces started by this process in the open step. | |
is_piece_open | logical | A piece is open. | |
version_minor | integer(kind=I8P) | Minor version needed by the features written. | |
active | type(active_array) | Active arrays of the open group, one per role. | |
topology | integer(kind=I4P) | Topology: one of the TOPOLOGY_* constants. | |
np_piece | integer(kind=I8P) | Points of the open piece (UnstructuredGrid, PolyData). | |
nc_piece | integer(kind=I8P) | Cells of the open piece (UnstructuredGrid, PolyData). | |
block_cells | integer(kind=I8P) | Cells of each block of the open piece (PolyData). | |
total_points | integer(kind=I8P) | Points of the pieces started (UnstructuredGrid, PolyData). | |
total_cells | integer(kind=I8P) | Cells of the pieces started (UnstructuredGrid, PolyData). | |
is_geo_written | logical | The points of the open piece are written. | |
is_connectivity_written | logical | The cells of the open piece are written. | |
has_polyhedra | logical | The file has polyhedra (UnstructuredGrid). | |
is_faces_written | logical | The faces of the polyhedra of the open piece are written. | |
is_temporal | logical | The file is a time series (write_step). | |
n_steps | integer(kind=I8P) | Steps started. | |
step_time | real(kind=R8P) | Time of the open step. | |
step_pieces | integer(kind=I8P) | Pieces of the open step. | |
step_start | integer(kind=I8P) | Totals at the start of the open step: parts, points, cells, | |
step_blocks | integer(kind=I8P) | PolyData totals at the start of the step: cells, ids per block. | |
totals | integer(kind=I8P) | Running totals, as step_start. | |
block_totals | integer(kind=I8P) | Running PolyData totals: cells of each block, then ids. | |
mesh_start | integer(kind=I8P) | Entries of the last step with pieces (the mesh that a step | |
mesh_blocks | integer(kind=I8P) | PolyData entries of that step, as step_blocks. | |
mesh_pieces | integer(kind=I8P) | Parts of that step. | |
geo_slices | integer(kind=I8P) | Steps that wrote the geometry of a RectilinearGrid or | |
point_start | integer(kind=I8P) | allocatable | Tuples (slices for a grid) of each point array at the start |
point_prev | integer(kind=I8P) | allocatable | Offset of each point array at the step before. |
cell_start | integer(kind=I8P) | allocatable | As point_start, for the cell arrays. |
cell_prev | integer(kind=I8P) | allocatable | As point_prev, for the cell arrays. |
field_arrays | character(len=:) | allocatable | Names of the field data arrays of a time series. |
is_reopened | logical | A time series reopened (reopen): the extent start unknown. | |
point_arrays | character(len=:) | allocatable | Names of the point data arrays, NUL terminated. |
cell_arrays | character(len=:) | allocatable | Names of the cell data arrays, NUL terminated. |
row_arrays | character(len=:) | allocatable | Names of the columns of a Table, NUL terminated. |
table_rows | integer(kind=I8P) | Rows of the columns of the open step (-1: no column yet). | |
row_total | integer(kind=I8P) | Rows of the steps before the open one (a Table). | |
level_group | integer(kind=hid_kind) | Group of the open level of an OverlappingAMR. | |
level | integer(kind=I4P) | Open level (from 0), -1 if none. | |
n_levels | integer(kind=I4P) | Levels written. | |
level_spacing | real(kind=R8P) | allocatable | Spacing of each level, (3, n_levels). |
level_counts | integer(kind=I8P) | allocatable | Of each level: boxes, points, cells written, and the same |
has_domain | logical | A box of level 0 is written (in the open step). | |
domain | real(kind=R8P) | Bounds of the boxes of level 0: x, y, z min and max. | |
tree_bits | logical | allocatable | Refinement bits of the trees written (HyperTreeGrid). |
tree_mask | logical | allocatable | Mask bits of the cells of the trees written. |
has_mask | logical | A tree written has a mask. | |
tree_ids | integer(kind=I8P) | allocatable | Trees written. |
tree_depths | integer(kind=I8P) | allocatable | Depths of the trees written. |
tree_counts | integer(kind=I8P) | allocatable | Cells of each depth of each tree written. |
tree_cells | integer(kind=I8P) | Cells of the trees written (the mask bits used). | |
n_tree_ids | integer(kind=I8P) | Trees written (tree_ids, tree_depths used). | |
n_tree_counts | integer(kind=I8P) | Entries of tree_counts used. | |
n_tree_bits | integer(kind=I8P) | Refinement bits used. | |
is_tree_data | logical | The cell data of the trees are started. | |
tree_totals | integer(kind=I8P) | Of the steps before (HyperTreeGrid series): trees, depth | |
is_parallel | logical | The file is written by the ranks of an MPI communicator. | |
region | integer(kind=I4P) | Region of this rank of a grid written from ranks: its extent. | |
has_region | logical | The region is known (set by write_piece, not after a reopen). | |
rank | integer(kind=I4P) | Rank of this process in comm. | |
regions | integer(kind=I8P) | allocatable | Regions of all the ranks, regions(:, r) of rank r-1. |
comm | integer(kind=I4P) | MPI communicator (Fortran handle), if is_parallel. |
Type-Bound Procedures
| Name | Attributes | Description |
|---|---|---|
write_connectivity | ||
write_dataarray | ||
write_fielddata | ||
write_dataarray_unsigned | ||
write_geo | ||
write_piece | ||
initialize | pass(self) | |
finalize | pass(self) | |
write_piece_start_tag | pass(self) | |
write_piece_end_tag | pass(self) | |
write_step | pass(self) | |
write_dataarray_location_tag | pass(self) | |
write_level | pass(self) | |
write_tree | pass(self) | |
set_interface | pass(self) | |
write_fielddata_tag | pass(self) | |
write_fielddata1_rank0 | pass(self) | |
write_fielddata1_rank1 | pass(self) | |
free | pass(self) | |
set_component_names | pass(self) | |
write_fielddata1_rank2 | pass(self) | |
write_dataarray_strings | pass(self) | |
get_xml_volatile | pass(self) | |
write_dataarray1_rank1_R8P | pass(self) | |
write_dataarray1_rank1_R4P | pass(self) | |
write_dataarray1_rank1_I8P | pass(self) | |
write_dataarray1_rank1_I4P | pass(self) | |
write_dataarray1_rank1_I2P | pass(self) | |
write_dataarray1_rank1_I1P | pass(self) | |
write_dataarray1_rank2_R8P | pass(self) | |
write_dataarray1_rank2_R4P | pass(self) | |
write_dataarray1_rank2_I8P | pass(self) | |
write_dataarray1_rank2_I4P | pass(self) | |
write_dataarray1_rank2_I2P | pass(self) | |
write_dataarray1_rank2_I1P | pass(self) | |
write_dataarray1_rank3_R8P | pass(self) | |
write_dataarray1_rank3_R4P | pass(self) | |
write_dataarray1_rank3_I8P | pass(self) | |
write_dataarray1_rank3_I4P | pass(self) | |
write_dataarray1_rank3_I2P | pass(self) | |
write_dataarray1_rank3_I1P | pass(self) | |
write_dataarray1_rank4_R8P | pass(self) | |
write_dataarray1_rank4_R4P | pass(self) | |
write_dataarray1_rank4_I8P | pass(self) | |
write_dataarray1_rank4_I4P | pass(self) | |
write_dataarray1_rank4_I2P | pass(self) | |
write_dataarray1_rank4_I1P | pass(self) | |
write_dataarray3_rank1_R8P | pass(self) | |
write_dataarray3_rank1_R4P | pass(self) | |
write_dataarray3_rank1_I8P | pass(self) | |
write_dataarray3_rank1_I4P | pass(self) | |
write_dataarray3_rank1_I2P | pass(self) | |
write_dataarray3_rank1_I1P | pass(self) | |
write_dataarray3_rank3_R8P | pass(self) | |
write_dataarray3_rank3_R4P | pass(self) | |
write_dataarray3_rank3_I8P | pass(self) | |
write_dataarray3_rank3_I4P | pass(self) | |
write_dataarray3_rank3_I2P | pass(self) | |
write_dataarray3_rank3_I1P | pass(self) | |
write_dataarray6_rank1_R8P | pass(self) | |
write_dataarray6_rank1_R4P | pass(self) | |
write_dataarray6_rank1_I8P | pass(self) | |
write_dataarray6_rank1_I4P | pass(self) | |
write_dataarray6_rank1_I2P | pass(self) | |
write_dataarray6_rank1_I1P | pass(self) | |
write_dataarray6_rank3_R8P | pass(self) | |
write_dataarray6_rank3_R4P | pass(self) | |
write_dataarray6_rank3_I8P | pass(self) | |
write_dataarray6_rank3_I4P | pass(self) | |
write_dataarray6_rank3_I2P | pass(self) | |
write_dataarray6_rank3_I1P | pass(self) | |
write_dataarray_unsigned_I8P | pass(self) | |
write_dataarray_unsigned_I4P | pass(self) | |
write_dataarray_unsigned_I2P | pass(self) | |
write_dataarray_unsigned_I1P | pass(self) | |
write_geo_unst_data1_rank2_R8P | pass(self) | |
write_geo_unst_data3_rank1_R8P | pass(self) | |
write_geo_unst_data1_rank2_R8P_I8P | pass(self) | |
write_geo_unst_data3_rank1_R8P_I8P | pass(self) | |
write_geo_unst_data1_rank2_R4P | pass(self) | |
write_geo_unst_data3_rank1_R4P | pass(self) | |
write_geo_unst_data1_rank2_R4P_I8P | pass(self) | |
write_geo_unst_data3_rank1_R4P_I8P | pass(self) | |
write_connectivity_I4P | pass(self) | |
write_connectivity_I8P | pass(self) | |
write_piece_start_tag_unst | pass(self) | |
write_piece_start_tag_unst_I8P | pass(self) | |
write_piece_start_tag_poly | pass(self) | |
write_piece_start_tag_poly_I8P | pass(self) | |
write_polydata_cells | pass(self) | |
write_geo_rect_data3_rank1_R8P | pass(self) | |
write_geo_strg_data1_rank2_R8P | pass(self) | |
write_geo_strg_data1_rank4_R8P | pass(self) | |
write_geo_strg_data3_rank1_R8P | pass(self) | |
write_geo_strg_data3_rank3_R8P | pass(self) | |
write_geo_rect_data3_rank1_R4P | pass(self) | |
write_geo_strg_data1_rank2_R4P | pass(self) | |
write_geo_strg_data1_rank4_R4P | pass(self) | |
write_geo_strg_data3_rank1_R4P | pass(self) | |
write_geo_strg_data3_rank3_R4P | pass(self) | |
reopen | pass(self) | Reopen a time series to append steps (action='append'). |
reopen_file | pass(self) | Read the state of a time series reopened, trim its datasets. |
set_comm | pass(self) | Write the file from the ranks of an MPI communicator. |
check_arrays | pass(self) | Check the tuples written in the open step by each array. |
check_cells | pass(self) | Check a write_connectivity call of an UnstructuredGrid piece. |
check_geo | pass(self) | Check a write_geo call of an UnstructuredGrid or PolyData piece. |
close_group | pass(self) | Close the open data group. |
dataset_dims | pass(self) | Shape of the dataset of a data array. |
deflate_level | pass(self) | Deflate level of the datasets. |
check_grid_geo | pass(self) | Check a write_geo call of a RectilinearGrid or StructuredGrid. |
end_partition | pass(self) | End a piece of an UnstructuredGrid or PolyData: check it. |
grid_points | pass(self) | Points of the grid along each axis (whole extent). |
is_partitioned | pass(self) | The pieces are partitions (UnstructuredGrid, PolyData). |
mark_active | pass(self) | Mark a dataset as active array. |
open_group | pass(self) | Open (or create) a data group. |
no_faces | pass(self) | Write the zero entries of a piece without polyhedra. |
add_face_totals | pass(self) | Add the faces of a piece to the totals (with comm, of the ranks). |
poly_block | pass(self) | Check or write a block of cells of a PolyData piece. |
poly_blocks | pass(self) | Check or write the four blocks of cells of a PolyData piece. |
end_reusing | pass(self) | Check the arrays of a step without pieces, write its entries. |
end_table | pass(self) | End the columns of a Table (static, or a step). |
end_box | pass(self) | End a box of an OverlappingAMR: check its arrays. |
is_table_complete | pass(self) | A Table has the NumberOfRows entry of every step. |
end_trees | pass(self) | End the piece of a HyperTreeGrid: write its trees. |
is_recorded | pass(self) | A data array name is recorded (point or cell data). |
open_level | pass(self) | Open (or create) a level of an OverlappingAMR. |
start_box | pass(self) | Start a box of an OverlappingAMR (write_piece of the level). |
is_reusing | pass(self) | The open step has no piece: it reuses the mesh of the step before. |
is_written_in_step | pass(self) | A point or cell array is written in the open step. |
record_array | pass(self) | Record the name of a point or cell data array. |
agree | pass(self) | With comm, the largest error of the ranks. |
agree_name | pass(self) | With comm, refuse an array that is not the same on every rank. |
axis_runs | pass(self) | The coordinates of an axis that this rank writes (RectilinearGrid). |
points_block | pass(self) | The block of the points of a StructuredGrid that this rank writes. |
region_block | pass(self) | The block of a grid array that this rank writes. |
start_region | pass(self) | Start the region of this rank of a grid written from ranks. |
roll_arrays | pass(self) | Start the bookkeeping of the arrays for a new step. |
reset | pass(self) | Reset the state of the writer. |
start_partition | pass(self) | Start a piece of an UnstructuredGrid or PolyData. |
start_polyhedra | pass(self) | Start the polyhedra of the file: zero entries for the earlier pieces. |
step_entry | pass(self) | Write the entry of the open step of a dataset of Steps. |
write_steps | pass(self) | Write the Steps entries of the open step, NSteps, Version; flush. |
Subroutines
free
Free the writer state (the file is closed by finalize).
Attributes: elemental
fortran
subroutine free(self, error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | ||
error | integer(kind=I4P) | out | optional |
Call graph
get_xml_volatile
No volatile (in memory) file in VTKHDF: an error.
Attributes: pure
fortran
subroutine get_xml_volatile(self, xml_volatile, error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | in | ||
xml_volatile | character(len=:) | out | allocatable | |
error | integer(kind=I4P) | out | optional |
Call graph
record_array
Record the name of an array of the open data group: point and cell data of an UnstructuredGrid or PolyData (checked at the end of the pieces), and of a grid in a time series (checked at the end of the steps); field data of a time series (their Steps entries).
fortran
subroutine record_array(self, data_name)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
data_name | character(len=*) | in | Data name. |
Call graph
region_block
The block of a point (cells false) or cell array of a grid that this rank writes, its region of the whole extent: the shape of the dataset dims and of the values of the region mem_dims, where the block starts in each, its shape count (Fortran order, the components first if more than one; the axes of one point dropped, as dataset_dims). The points of an upper boundary of the region inside the whole extent are left to the region that starts there; an empty region has an empty block.
fortran
subroutine region_block(self, cells, n_components, dims, mem_dims, mem_start, file_start, count)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | in | Writer. | |
cells | logical | in | Cell data, otherwise point data. | |
n_components | integer(kind=I4P) | in | Components. | |
dims | integer(kind=I8P) | out | allocatable | Shape of the dataset. |
mem_dims | integer(kind=I8P) | out | allocatable | Shape of the values of the region. |
mem_start | integer(kind=I8P) | out | allocatable | Start of the block in the values. |
file_start | integer(kind=I8P) | out | allocatable | Start of the block in the dataset. |
count | integer(kind=I8P) | out | allocatable | Shape of the block. |
Call graph
axis_runs
The coordinates of the axis a (1 x, 2 y, 3 z) of a RectilinearGrid that this rank writes: those of its region that no rank before has in its own (the coordinates shared by regions are equal; the lowest rank writes them), as runs of consecutive entries: runs(:, r) = start in the values of the region, start in the dataset (from 0), length.
fortran
subroutine axis_runs(self, a, runs)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | in | Writer. | |
a | integer(kind=I4P) | in | Axis. | |
runs | integer(kind=I8P) | out | allocatable | Runs. |
Call graph
points_block
The block of the points of a StructuredGrid that this rank writes (Points, [3, ni, nj, nk] in Fortran order, every axis kept): the shape of the points of its region, where its block starts in the dataset, its shape (the points of an upper boundary inside the whole extent left to the region that starts there).
fortran
subroutine points_block(self, mem_dims, file_start, count)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | in | Writer. | |
mem_dims | integer(kind=I8P) | out | Shape of the points of the region. | |
file_start | integer(kind=I8P) | out | Start of the block in the dataset. | |
count | integer(kind=I8P) | out | Shape of the block. |
Call graph
set_comm
Write the next file from the ranks of the MPI communicator comm (Fortran handle: MPI_Comm%MPI_VAL of mpi_f08): set before initialize (vtk_file%initialize(..., comm=)), forgotten by finalize.
Every rank calls every procedure, with the same arrays in the same order (the HDF5 calls are collective): its piece is one partition of the UnstructuredGrid or PolyData, appended after the pieces of the ranks before (one piece per rank, in each step of a time series; polyhedra on some ranks only: the others write zero entries; compressor zlib with an HDF5 of parallel filtered writes, the writes collective), or its region of a grid (in each step of a time series too: one slice more of every dataset, each rank its block). Refused: compressor zlib for a grid.
fortran
subroutine set_comm(self, comm)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
comm | integer(kind=I4P) | in | MPI communicator (Fortran handle). |
Call graph
reset
Reset the state of the writer, but the HDF5 identifiers.
Attributes: elemental
fortran
subroutine reset(self)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. |
Call graph
append_I8P
Append more to the first n entries of values (its capacity doubled when full), n updated.
Attributes: pure
fortran
subroutine append_I8P(values, n, more)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
values | integer(kind=I8P) | inout | allocatable | Values, the first n used. |
n | integer(kind=I8P) | inout | Entries used. | |
more | integer(kind=I8P) | in | Values appended. |
Call graph
append_bits
Append n_more bits (more, or false if not present) to the first n of values (capacity doubled), n updated.
Attributes: pure
fortran
subroutine append_bits(values, n, more, n_more)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
values | logical | inout | allocatable | Bits, the first n used. |
n | integer(kind=I8P) | inout | Bits used. | |
more | logical | in | optional | Bits appended. |
n_more | integer(kind=I8P) | in | Bits appended. |
Call graph
Functions
initialize
Initialize the writer: create the file and write the header of the topology.
format is VTKHDF (not checked here), mesh_topology ImageData, RectilinearGrid or StructuredGrid, with the whole extent nx1...nz2 (origin, spacing and direction of an ImageData are set by vtk_file%initialize), UnstructuredGrid or PolyData (its four groups of cells created here: VTK reads none without all of them). is_volatile is refused, mesh_kind unused (the points keep the kind they are given).
Returns: integer(kind=I4P)
fortran
function initialize(self, format, filename, mesh_topology, nx1, nx2, ny1, ny2, nz1, nz2, is_volatile, mesh_kind) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
format | character(len=*) | in | File format: VTKHDF. | |
filename | character(len=*) | in | File name. | |
mesh_topology | character(len=*) | in | Mesh topology. | |
nx1 | integer(kind=I4P) | in | optional | Initial node of x axis. |
nx2 | integer(kind=I4P) | in | optional | Final node of x axis. |
ny1 | integer(kind=I4P) | in | optional | Initial node of y axis. |
ny2 | integer(kind=I4P) | in | optional | Final node of y axis. |
nz1 | integer(kind=I4P) | in | optional | Initial node of z axis. |
nz2 | integer(kind=I4P) | in | optional | Final node of z axis. |
is_volatile | logical | in | optional | Flag to check volatile writer. |
mesh_kind | character(len=*) | in | optional | Kind of mesh data: Float64, Float32, ecc. |
Call graph
finalize
Finalize the writer: write the version (the lowest one with the features used) and close the file.
A group left open is closed (the columns of a Table ended). A piece left open is refused for an OverlappingAMR and a HyperTreeGrid, whose boxes and trees it writes. The last step of a time series can be a step without pieces (it reuses the mesh of the step before), not the first one.
Returns: integer(kind=I4P)
fortran
function finalize(self) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. |
Call graph
write_piece_start_tag
Start the piece of an ImageData, RectilinearGrid or StructuredGrid: VTKHDF stores one piece, whose extent is the whole extent. From the ranks of comm, the region of this rank: its sub-extent (empty: an upper bound before its lower one), the regions of all the ranks inside the whole extent, not overlapping in cells, covering it.
Returns: integer(kind=I4P)
fortran
function write_piece_start_tag(self, nx1, nx2, ny1, ny2, nz1, nz2) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | ||
nx1 | integer(kind=I4P) | in | ||
nx2 | integer(kind=I4P) | in | ||
ny1 | integer(kind=I4P) | in | ||
ny2 | integer(kind=I4P) | in | ||
nz1 | integer(kind=I4P) | in | ||
nz2 | integer(kind=I4P) | in |
Call graph
write_piece_end_tag
End the piece. A piece of an UnstructuredGrid or PolyData needs its points and cells, and every array of the first piece; the piece of a RectilinearGrid or StructuredGrid needs its geometry (in a time series, in the first step only: a later piece without it reuses the geometry of the step before). In a time series, the arrays of a grid are checked (one time slice, or none after the first step: the values of the step before) and the Steps entries of the step written (the file is valid after it).
Returns: integer(kind=I4P)
fortran
function write_piece_end_tag(self) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout |
Call graph
write_step
Start a time step: a file whose first output starts with write_step is a time series (VTKHDF Steps), each of its outputs then starts with write_step(time), times increasing, followed by its field data and its pieces (one for a grid). The Steps entries are written at the end of every piece.
After the first step, what does not change is stored once: a step without pieces reuses the mesh of the step before (its point and cell data written in data groups opened directly); a grid piece without write_geo reuses the geometry; an array not written reuses its values (see the module header for the rules).
Returns: integer(kind=I4P)
fortran
function write_step(self, time) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | ||
time | real(kind=R8P) | in |
Call graph
write_dataarray_location_tag
Open or close the group of the point (node) or cell (cell) data, inside the piece (or in a step without pieces, which reuses the mesh of the step before: its arrays hold the points or cells of all the parts reused), or the group of the columns (row) of a Table (no piece; once, or once in each step of a time series).
When opening, scalars, vectors, normals, tensors, tcoords, global_ids, pedigree_ids, edge_flags, tangents, rational_weights, higher_order_degrees and process_ids name the active array of each role of VTK: the dataset of that name, when written, gets the Attribute attribute (VTKHDF 2.6) holding the role (Scalars, ..., ProcessIds, the names VTK writes).
Returns: integer(kind=I4P)
fortran
function write_dataarray_location_tag(self, location, action, scalars, vectors, normals, tensors, tcoords, global_ids, pedigree_ids, edge_flags, tangents, rational_weights, higher_order_degrees, process_ids) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | ||
location | character(len=*) | in | ||
action | character(len=*) | in | ||
scalars | character(len=*) | in | optional | |
vectors | character(len=*) | in | optional | |
normals | character(len=*) | in | optional | |
tensors | character(len=*) | in | optional | |
tcoords | character(len=*) | in | optional | |
global_ids | character(len=*) | in | optional | |
pedigree_ids | character(len=*) | in | optional | |
edge_flags | character(len=*) | in | optional | |
tangents | character(len=*) | in | optional | |
rational_weights | character(len=*) | in | optional | |
higher_order_degrees | character(len=*) | in | optional | |
process_ids | character(len=*) | in | optional |
Call graph
write_level
Start the level level (0, 1, ... in order; a level started before can be started again, with its spacing) of an OverlappingAMR, of spacing spacing: its boxes follow, each a write_piece(nx1, ..., nz2) (its point extent in the indices of the level) with its point and cell data, closed by write_piece(). In a time series every step starts its levels again.
Returns: integer(kind=I4P)
fortran
function write_level(self, level, spacing) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | ||
level | integer(kind=I4P) | in | ||
spacing | real(kind=R8P) | in |
Call graph
write_tree
Write the tree tree_id (its root cell, from 0: i + (nx-1)(j + (ny-1)k) of the root grid) of a HyperTreeGrid, in its piece, after its coordinates and before its cell data: descriptor the refinement (true) of its cells breadth first, the children of a cell x fastest, for every depth but the deepest (all its cells are leaves: an empty descriptor is a tree of one leaf); mask (optional) one value per cell of the tree, breadth first, a refined cell not masked.
Returns: integer(kind=I4P)
fortran
function write_tree(self, tree_id, descriptor, mask) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | ||
tree_id | integer(kind=I4P) | in | ||
descriptor | logical | in | ||
mask | logical | in | optional |
Call graph
set_interface
Name the interface arrays of a HyperTreeGrid (VTKHDF root attributes InterfaceNormalsName and InterfaceInterceptsName, as vtkHDFWriter writes them; VTK reads them as GetHasInterface): normals and intercepts are cell arrays of 3 components (VTK: the normal of the interface in a cell; its intercepts and type), written in the piece. Any time while the file is open; a second call renames them.
Returns: integer(kind=I4P)
fortran
function set_interface(self, normals, intercepts) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | ||
normals | character(len=*) | in | ||
intercepts | character(len=*) | in |
Call graph
write_fielddata_tag
Open or close the group of the field data (outside the piece).
Returns: integer(kind=I4P)
fortran
function write_fielddata_tag(self, action) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | ||
action | character(len=*) | in |
Call graph
write_fielddata1_rank0
Write a field data array (one value, numeric): a dataset of FieldData.
Returns: integer(kind=I4P)
fortran
function write_fielddata1_rank0(self, data_name, x) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | ||
data_name | character(len=*) | in | ||
x | class(*) | in |
Call graph
write_fielddata1_rank1
Write a field data array (rank 1, numeric): a dataset of FieldData.
Returns: integer(kind=I4P)
fortran
function write_fielddata1_rank1(self, data_name, x) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | ||
data_name | character(len=*) | in | ||
x | class(*) | in |
Call graph
set_component_names
Component names: none in VTKHDF (not in the specification; vtkHDFWriter drops them): accepted, not written.
Returns: integer(kind=I4P)
fortran
function set_component_names(self, names) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | ||
names | character(len=*) | in |
write_fielddata1_rank2
Write a field data array of several components, x(components, tuples): a dataset of FieldData.
Returns: integer(kind=I4P)
fortran
function write_fielddata1_rank2(self, data_name, x) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | ||
data_name | character(len=*) | in | ||
x | class(*) | in |
Call graph
write_dataarray_strings
A string array of point, cell data or a Table column: refused (VTK 9.7.2 reads the strings of a VTKHDF file as field data only: give them with write_fielddata).
Returns: integer(kind=I4P)
fortran
function write_dataarray_strings(self, data_name, x) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | ||
data_name | character(len=*) | in | ||
x | character(len=*) | in |
Call graph
write_dataarray1_rank1_R8P
Write a data array (R8P), one component: a dataset of the open group.
Returns: integer(kind=I4P)
fortran
function write_dataarray1_rank1_R8P(self, data_name, x, is_tuples) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
data_name | character(len=*) | in | Data name. | |
x | real(kind=R8P) | in | Data variable. | |
is_tuples | logical | in | optional | Use "NumberOfTuples" instead of "NumberOfComponents". |
Call graph
write_dataarray1_rank1_R4P
Write a data array (R4P), one component: a dataset of the open group.
Returns: integer(kind=I4P)
fortran
function write_dataarray1_rank1_R4P(self, data_name, x, is_tuples) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
data_name | character(len=*) | in | Data name. | |
x | real(kind=R4P) | in | Data variable. | |
is_tuples | logical | in | optional | Use "NumberOfTuples" instead of "NumberOfComponents". |
Call graph
write_dataarray1_rank1_I8P
Write a data array (I8P), one component: a dataset of the open group.
Returns: integer(kind=I4P)
fortran
function write_dataarray1_rank1_I8P(self, data_name, x, is_tuples) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
data_name | character(len=*) | in | Data name. | |
x | integer(kind=I8P) | in | Data variable. | |
is_tuples | logical | in | optional | Use "NumberOfTuples" instead of "NumberOfComponents". |
Call graph
write_dataarray1_rank1_I4P
Write a data array (I4P), one component: a dataset of the open group.
Returns: integer(kind=I4P)
fortran
function write_dataarray1_rank1_I4P(self, data_name, x, is_tuples) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
data_name | character(len=*) | in | Data name. | |
x | integer(kind=I4P) | in | Data variable. | |
is_tuples | logical | in | optional | Use "NumberOfTuples" instead of "NumberOfComponents". |
Call graph
write_dataarray1_rank1_I2P
Write a data array (I2P), one component: a dataset of the open group.
Returns: integer(kind=I4P)
fortran
function write_dataarray1_rank1_I2P(self, data_name, x, is_tuples) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
data_name | character(len=*) | in | Data name. | |
x | integer(kind=I2P) | in | Data variable. | |
is_tuples | logical | in | optional | Use "NumberOfTuples" instead of "NumberOfComponents". |
Call graph
write_dataarray1_rank1_I1P
Write a data array (I1P), one component: a dataset of the open group.
Returns: integer(kind=I4P)
fortran
function write_dataarray1_rank1_I1P(self, data_name, x, is_tuples) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
data_name | character(len=*) | in | Data name. | |
x | integer(kind=I1P) | in | Data variable. | |
is_tuples | logical | in | optional | Use "NumberOfTuples" instead of "NumberOfComponents". |
Call graph
write_dataarray1_rank2_R8P
Write a data array (R8P), size(x, 1) components (one with one_component): a dataset of the open group.
Returns: integer(kind=I4P)
fortran
function write_dataarray1_rank2_R8P(self, data_name, x, one_component, is_tuples) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
data_name | character(len=*) | in | Data name. | |
x | real(kind=R8P) | in | Data variable. | |
one_component | logical | in | optional | Force one component. |
is_tuples | logical | in | optional | Use "NumberOfTuples" instead of "NumberOfComponents". |
Call graph
write_dataarray1_rank2_R4P
Write a data array (R4P), size(x, 1) components (one with one_component): a dataset of the open group.
Returns: integer(kind=I4P)
fortran
function write_dataarray1_rank2_R4P(self, data_name, x, one_component, is_tuples) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
data_name | character(len=*) | in | Data name. | |
x | real(kind=R4P) | in | Data variable. | |
one_component | logical | in | optional | Force one component. |
is_tuples | logical | in | optional | Use "NumberOfTuples" instead of "NumberOfComponents". |
Call graph
write_dataarray1_rank2_I8P
Write a data array (I8P), size(x, 1) components (one with one_component): a dataset of the open group.
Returns: integer(kind=I4P)
fortran
function write_dataarray1_rank2_I8P(self, data_name, x, one_component, is_tuples) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
data_name | character(len=*) | in | Data name. | |
x | integer(kind=I8P) | in | Data variable. | |
one_component | logical | in | optional | Force one component. |
is_tuples | logical | in | optional | Use "NumberOfTuples" instead of "NumberOfComponents". |
Call graph
write_dataarray1_rank2_I4P
Write a data array (I4P), size(x, 1) components (one with one_component): a dataset of the open group.
Returns: integer(kind=I4P)
fortran
function write_dataarray1_rank2_I4P(self, data_name, x, one_component, is_tuples) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
data_name | character(len=*) | in | Data name. | |
x | integer(kind=I4P) | in | Data variable. | |
one_component | logical | in | optional | Force one component. |
is_tuples | logical | in | optional | Use "NumberOfTuples" instead of "NumberOfComponents". |
Call graph
write_dataarray1_rank2_I2P
Write a data array (I2P), size(x, 1) components (one with one_component): a dataset of the open group.
Returns: integer(kind=I4P)
fortran
function write_dataarray1_rank2_I2P(self, data_name, x, one_component, is_tuples) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
data_name | character(len=*) | in | Data name. | |
x | integer(kind=I2P) | in | Data variable. | |
one_component | logical | in | optional | Force one component. |
is_tuples | logical | in | optional | Use "NumberOfTuples" instead of "NumberOfComponents". |
Call graph
write_dataarray1_rank2_I1P
Write a data array (I1P), size(x, 1) components (one with one_component): a dataset of the open group.
Returns: integer(kind=I4P)
fortran
function write_dataarray1_rank2_I1P(self, data_name, x, one_component, is_tuples) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
data_name | character(len=*) | in | Data name. | |
x | integer(kind=I1P) | in | Data variable. | |
one_component | logical | in | optional | Force one component. |
is_tuples | logical | in | optional | Use "NumberOfTuples" instead of "NumberOfComponents". |
Call graph
write_dataarray1_rank3_R8P
Write a data array (R8P), size(x, 1) components (one with one_component): a dataset of the open group.
Returns: integer(kind=I4P)
fortran
function write_dataarray1_rank3_R8P(self, data_name, x, one_component, is_tuples) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
data_name | character(len=*) | in | Data name. | |
x | real(kind=R8P) | in | Data variable. | |
one_component | logical | in | optional | Force one component. |
is_tuples | logical | in | optional | Use "NumberOfTuples" instead of "NumberOfComponents". |
Call graph
write_dataarray1_rank3_R4P
Write a data array (R4P), size(x, 1) components (one with one_component): a dataset of the open group.
Returns: integer(kind=I4P)
fortran
function write_dataarray1_rank3_R4P(self, data_name, x, one_component, is_tuples) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
data_name | character(len=*) | in | Data name. | |
x | real(kind=R4P) | in | Data variable. | |
one_component | logical | in | optional | Force one component. |
is_tuples | logical | in | optional | Use "NumberOfTuples" instead of "NumberOfComponents". |
Call graph
write_dataarray1_rank3_I8P
Write a data array (I8P), size(x, 1) components (one with one_component): a dataset of the open group.
Returns: integer(kind=I4P)
fortran
function write_dataarray1_rank3_I8P(self, data_name, x, one_component, is_tuples) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
data_name | character(len=*) | in | Data name. | |
x | integer(kind=I8P) | in | Data variable. | |
one_component | logical | in | optional | Force one component. |
is_tuples | logical | in | optional | Use "NumberOfTuples" instead of "NumberOfComponents". |
Call graph
write_dataarray1_rank3_I4P
Write a data array (I4P), size(x, 1) components (one with one_component): a dataset of the open group.
Returns: integer(kind=I4P)
fortran
function write_dataarray1_rank3_I4P(self, data_name, x, one_component, is_tuples) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
data_name | character(len=*) | in | Data name. | |
x | integer(kind=I4P) | in | Data variable. | |
one_component | logical | in | optional | Force one component. |
is_tuples | logical | in | optional | Use "NumberOfTuples" instead of "NumberOfComponents". |
Call graph
write_dataarray1_rank3_I2P
Write a data array (I2P), size(x, 1) components (one with one_component): a dataset of the open group.
Returns: integer(kind=I4P)
fortran
function write_dataarray1_rank3_I2P(self, data_name, x, one_component, is_tuples) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
data_name | character(len=*) | in | Data name. | |
x | integer(kind=I2P) | in | Data variable. | |
one_component | logical | in | optional | Force one component. |
is_tuples | logical | in | optional | Use "NumberOfTuples" instead of "NumberOfComponents". |
Call graph
write_dataarray1_rank3_I1P
Write a data array (I1P), size(x, 1) components (one with one_component): a dataset of the open group.
Returns: integer(kind=I4P)
fortran
function write_dataarray1_rank3_I1P(self, data_name, x, one_component, is_tuples) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
data_name | character(len=*) | in | Data name. | |
x | integer(kind=I1P) | in | Data variable. | |
one_component | logical | in | optional | Force one component. |
is_tuples | logical | in | optional | Use "NumberOfTuples" instead of "NumberOfComponents". |
Call graph
write_dataarray1_rank4_R8P
Write a data array (R8P), size(x, 1) components (one with one_component): a dataset of the open group.
Returns: integer(kind=I4P)
fortran
function write_dataarray1_rank4_R8P(self, data_name, x, one_component, is_tuples) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
data_name | character(len=*) | in | Data name. | |
x | real(kind=R8P) | in | Data variable. | |
one_component | logical | in | optional | Force one component. |
is_tuples | logical | in | optional | Use "NumberOfTuples" instead of "NumberOfComponents". |
Call graph
write_dataarray1_rank4_R4P
Write a data array (R4P), size(x, 1) components (one with one_component): a dataset of the open group.
Returns: integer(kind=I4P)
fortran
function write_dataarray1_rank4_R4P(self, data_name, x, one_component, is_tuples) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
data_name | character(len=*) | in | Data name. | |
x | real(kind=R4P) | in | Data variable. | |
one_component | logical | in | optional | Force one component. |
is_tuples | logical | in | optional | Use "NumberOfTuples" instead of "NumberOfComponents". |
Call graph
write_dataarray1_rank4_I8P
Write a data array (I8P), size(x, 1) components (one with one_component): a dataset of the open group.
Returns: integer(kind=I4P)
fortran
function write_dataarray1_rank4_I8P(self, data_name, x, one_component, is_tuples) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
data_name | character(len=*) | in | Data name. | |
x | integer(kind=I8P) | in | Data variable. | |
one_component | logical | in | optional | Force one component. |
is_tuples | logical | in | optional | Use "NumberOfTuples" instead of "NumberOfComponents". |
Call graph
write_dataarray1_rank4_I4P
Write a data array (I4P), size(x, 1) components (one with one_component): a dataset of the open group.
Returns: integer(kind=I4P)
fortran
function write_dataarray1_rank4_I4P(self, data_name, x, one_component, is_tuples) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
data_name | character(len=*) | in | Data name. | |
x | integer(kind=I4P) | in | Data variable. | |
one_component | logical | in | optional | Force one component. |
is_tuples | logical | in | optional | Use "NumberOfTuples" instead of "NumberOfComponents". |
Call graph
write_dataarray1_rank4_I2P
Write a data array (I2P), size(x, 1) components (one with one_component): a dataset of the open group.
Returns: integer(kind=I4P)
fortran
function write_dataarray1_rank4_I2P(self, data_name, x, one_component, is_tuples) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
data_name | character(len=*) | in | Data name. | |
x | integer(kind=I2P) | in | Data variable. | |
one_component | logical | in | optional | Force one component. |
is_tuples | logical | in | optional | Use "NumberOfTuples" instead of "NumberOfComponents". |
Call graph
write_dataarray1_rank4_I1P
Write a data array (I1P), size(x, 1) components (one with one_component): a dataset of the open group.
Returns: integer(kind=I4P)
fortran
function write_dataarray1_rank4_I1P(self, data_name, x, one_component, is_tuples) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
data_name | character(len=*) | in | Data name. | |
x | integer(kind=I1P) | in | Data variable. | |
one_component | logical | in | optional | Force one component. |
is_tuples | logical | in | optional | Use "NumberOfTuples" instead of "NumberOfComponents". |
Call graph
write_dataarray3_rank1_R8P
Write a data array (R8P) of 3 components given one by one: a dataset of the open group.
Returns: integer(kind=I4P)
fortran
function write_dataarray3_rank1_R8P(self, data_name, x, y, z, is_tuples) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
data_name | character(len=*) | in | Data name. | |
x | real(kind=R8P) | in | X component of data variable. | |
y | real(kind=R8P) | in | Y component of data variable. | |
z | real(kind=R8P) | in | Z component of data variable. | |
is_tuples | logical | in | optional | Use "NumberOfTuples" instead of "NumberOfComponents". |
Call graph
write_dataarray3_rank1_R4P
Write a data array (R4P) of 3 components given one by one: a dataset of the open group.
Returns: integer(kind=I4P)
fortran
function write_dataarray3_rank1_R4P(self, data_name, x, y, z, is_tuples) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
data_name | character(len=*) | in | Data name. | |
x | real(kind=R4P) | in | X component of data variable. | |
y | real(kind=R4P) | in | Y component of data variable. | |
z | real(kind=R4P) | in | Z component of data variable. | |
is_tuples | logical | in | optional | Use "NumberOfTuples" instead of "NumberOfComponents". |
Call graph
write_dataarray3_rank1_I8P
Write a data array (I8P) of 3 components given one by one: a dataset of the open group.
Returns: integer(kind=I4P)
fortran
function write_dataarray3_rank1_I8P(self, data_name, x, y, z, is_tuples) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
data_name | character(len=*) | in | Data name. | |
x | integer(kind=I8P) | in | X component of data variable. | |
y | integer(kind=I8P) | in | Y component of data variable. | |
z | integer(kind=I8P) | in | Z component of data variable. | |
is_tuples | logical | in | optional | Use "NumberOfTuples" instead of "NumberOfComponents". |
Call graph
write_dataarray3_rank1_I4P
Write a data array (I4P) of 3 components given one by one: a dataset of the open group.
Returns: integer(kind=I4P)
fortran
function write_dataarray3_rank1_I4P(self, data_name, x, y, z, is_tuples) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
data_name | character(len=*) | in | Data name. | |
x | integer(kind=I4P) | in | X component of data variable. | |
y | integer(kind=I4P) | in | Y component of data variable. | |
z | integer(kind=I4P) | in | Z component of data variable. | |
is_tuples | logical | in | optional | Use "NumberOfTuples" instead of "NumberOfComponents". |
Call graph
write_dataarray3_rank1_I2P
Write a data array (I2P) of 3 components given one by one: a dataset of the open group.
Returns: integer(kind=I4P)
fortran
function write_dataarray3_rank1_I2P(self, data_name, x, y, z, is_tuples) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
data_name | character(len=*) | in | Data name. | |
x | integer(kind=I2P) | in | X component of data variable. | |
y | integer(kind=I2P) | in | Y component of data variable. | |
z | integer(kind=I2P) | in | Z component of data variable. | |
is_tuples | logical | in | optional | Use "NumberOfTuples" instead of "NumberOfComponents". |
Call graph
write_dataarray3_rank1_I1P
Write a data array (I1P) of 3 components given one by one: a dataset of the open group.
Returns: integer(kind=I4P)
fortran
function write_dataarray3_rank1_I1P(self, data_name, x, y, z, is_tuples) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
data_name | character(len=*) | in | Data name. | |
x | integer(kind=I1P) | in | X component of data variable. | |
y | integer(kind=I1P) | in | Y component of data variable. | |
z | integer(kind=I1P) | in | Z component of data variable. | |
is_tuples | logical | in | optional | Use "NumberOfTuples" instead of "NumberOfComponents". |
Call graph
write_dataarray3_rank3_R8P
Write a data array (R8P) of 3 components given one by one: a dataset of the open group.
Returns: integer(kind=I4P)
fortran
function write_dataarray3_rank3_R8P(self, data_name, x, y, z, is_tuples) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
data_name | character(len=*) | in | Data name. | |
x | real(kind=R8P) | in | X component of data variable. | |
y | real(kind=R8P) | in | Y component of data variable. | |
z | real(kind=R8P) | in | Z component of data variable. | |
is_tuples | logical | in | optional | Use "NumberOfTuples" instead of "NumberOfComponents". |
Call graph
write_dataarray3_rank3_R4P
Write a data array (R4P) of 3 components given one by one: a dataset of the open group.
Returns: integer(kind=I4P)
fortran
function write_dataarray3_rank3_R4P(self, data_name, x, y, z, is_tuples) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
data_name | character(len=*) | in | Data name. | |
x | real(kind=R4P) | in | X component of data variable. | |
y | real(kind=R4P) | in | Y component of data variable. | |
z | real(kind=R4P) | in | Z component of data variable. | |
is_tuples | logical | in | optional | Use "NumberOfTuples" instead of "NumberOfComponents". |
Call graph
write_dataarray3_rank3_I8P
Write a data array (I8P) of 3 components given one by one: a dataset of the open group.
Returns: integer(kind=I4P)
fortran
function write_dataarray3_rank3_I8P(self, data_name, x, y, z, is_tuples) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
data_name | character(len=*) | in | Data name. | |
x | integer(kind=I8P) | in | X component of data variable. | |
y | integer(kind=I8P) | in | Y component of data variable. | |
z | integer(kind=I8P) | in | Z component of data variable. | |
is_tuples | logical | in | optional | Use "NumberOfTuples" instead of "NumberOfComponents". |
Call graph
write_dataarray3_rank3_I4P
Write a data array (I4P) of 3 components given one by one: a dataset of the open group.
Returns: integer(kind=I4P)
fortran
function write_dataarray3_rank3_I4P(self, data_name, x, y, z, is_tuples) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
data_name | character(len=*) | in | Data name. | |
x | integer(kind=I4P) | in | X component of data variable. | |
y | integer(kind=I4P) | in | Y component of data variable. | |
z | integer(kind=I4P) | in | Z component of data variable. | |
is_tuples | logical | in | optional | Use "NumberOfTuples" instead of "NumberOfComponents". |
Call graph
write_dataarray3_rank3_I2P
Write a data array (I2P) of 3 components given one by one: a dataset of the open group.
Returns: integer(kind=I4P)
fortran
function write_dataarray3_rank3_I2P(self, data_name, x, y, z, is_tuples) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
data_name | character(len=*) | in | Data name. | |
x | integer(kind=I2P) | in | X component of data variable. | |
y | integer(kind=I2P) | in | Y component of data variable. | |
z | integer(kind=I2P) | in | Z component of data variable. | |
is_tuples | logical | in | optional | Use "NumberOfTuples" instead of "NumberOfComponents". |
Call graph
write_dataarray3_rank3_I1P
Write a data array (I1P) of 3 components given one by one: a dataset of the open group.
Returns: integer(kind=I4P)
fortran
function write_dataarray3_rank3_I1P(self, data_name, x, y, z, is_tuples) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
data_name | character(len=*) | in | Data name. | |
x | integer(kind=I1P) | in | X component of data variable. | |
y | integer(kind=I1P) | in | Y component of data variable. | |
z | integer(kind=I1P) | in | Z component of data variable. | |
is_tuples | logical | in | optional | Use "NumberOfTuples" instead of "NumberOfComponents". |
Call graph
write_dataarray6_rank1_R8P
Write a data array (R8P) of 6 components given one by one: a dataset of the open group.
Returns: integer(kind=I4P)
fortran
function write_dataarray6_rank1_R8P(self, data_name, u, v, w, x, y, z, is_tuples) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
data_name | character(len=*) | in | Data name. | |
u | real(kind=R8P) | in | U component of data variable. | |
v | real(kind=R8P) | in | V component of data variable. | |
w | real(kind=R8P) | in | W component of data variable. | |
x | real(kind=R8P) | in | X component of data variable. | |
y | real(kind=R8P) | in | Y component of data variable. | |
z | real(kind=R8P) | in | Z component of data variable. | |
is_tuples | logical | in | optional | Use "NumberOfTuples" instead of "NumberOfComponents". |
Call graph
write_dataarray6_rank1_R4P
Write a data array (R4P) of 6 components given one by one: a dataset of the open group.
Returns: integer(kind=I4P)
fortran
function write_dataarray6_rank1_R4P(self, data_name, u, v, w, x, y, z, is_tuples) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
data_name | character(len=*) | in | Data name. | |
u | real(kind=R4P) | in | U component of data variable. | |
v | real(kind=R4P) | in | V component of data variable. | |
w | real(kind=R4P) | in | W component of data variable. | |
x | real(kind=R4P) | in | X component of data variable. | |
y | real(kind=R4P) | in | Y component of data variable. | |
z | real(kind=R4P) | in | Z component of data variable. | |
is_tuples | logical | in | optional | Use "NumberOfTuples" instead of "NumberOfComponents". |
Call graph
write_dataarray6_rank1_I8P
Write a data array (I8P) of 6 components given one by one: a dataset of the open group.
Returns: integer(kind=I4P)
fortran
function write_dataarray6_rank1_I8P(self, data_name, u, v, w, x, y, z, is_tuples) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
data_name | character(len=*) | in | Data name. | |
u | integer(kind=I8P) | in | U component of data variable. | |
v | integer(kind=I8P) | in | V component of data variable. | |
w | integer(kind=I8P) | in | W component of data variable. | |
x | integer(kind=I8P) | in | X component of data variable. | |
y | integer(kind=I8P) | in | Y component of data variable. | |
z | integer(kind=I8P) | in | Z component of data variable. | |
is_tuples | logical | in | optional | Use "NumberOfTuples" instead of "NumberOfComponents". |
Call graph
write_dataarray6_rank1_I4P
Write a data array (I4P) of 6 components given one by one: a dataset of the open group.
Returns: integer(kind=I4P)
fortran
function write_dataarray6_rank1_I4P(self, data_name, u, v, w, x, y, z, is_tuples) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
data_name | character(len=*) | in | Data name. | |
u | integer(kind=I4P) | in | U component of data variable. | |
v | integer(kind=I4P) | in | V component of data variable. | |
w | integer(kind=I4P) | in | W component of data variable. | |
x | integer(kind=I4P) | in | X component of data variable. | |
y | integer(kind=I4P) | in | Y component of data variable. | |
z | integer(kind=I4P) | in | Z component of data variable. | |
is_tuples | logical | in | optional | Use "NumberOfTuples" instead of "NumberOfComponents". |
Call graph
write_dataarray6_rank1_I2P
Write a data array (I2P) of 6 components given one by one: a dataset of the open group.
Returns: integer(kind=I4P)
fortran
function write_dataarray6_rank1_I2P(self, data_name, u, v, w, x, y, z, is_tuples) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
data_name | character(len=*) | in | Data name. | |
u | integer(kind=I2P) | in | U component of data variable. | |
v | integer(kind=I2P) | in | V component of data variable. | |
w | integer(kind=I2P) | in | W component of data variable. | |
x | integer(kind=I2P) | in | X component of data variable. | |
y | integer(kind=I2P) | in | Y component of data variable. | |
z | integer(kind=I2P) | in | Z component of data variable. | |
is_tuples | logical | in | optional | Use "NumberOfTuples" instead of "NumberOfComponents". |
Call graph
write_dataarray6_rank1_I1P
Write a data array (I1P) of 6 components given one by one: a dataset of the open group.
Returns: integer(kind=I4P)
fortran
function write_dataarray6_rank1_I1P(self, data_name, u, v, w, x, y, z, is_tuples) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
data_name | character(len=*) | in | Data name. | |
u | integer(kind=I1P) | in | U component of data variable. | |
v | integer(kind=I1P) | in | V component of data variable. | |
w | integer(kind=I1P) | in | W component of data variable. | |
x | integer(kind=I1P) | in | X component of data variable. | |
y | integer(kind=I1P) | in | Y component of data variable. | |
z | integer(kind=I1P) | in | Z component of data variable. | |
is_tuples | logical | in | optional | Use "NumberOfTuples" instead of "NumberOfComponents". |
Call graph
write_dataarray6_rank3_R8P
Write a data array (R8P) of 6 components given one by one: a dataset of the open group.
Returns: integer(kind=I4P)
fortran
function write_dataarray6_rank3_R8P(self, data_name, u, v, w, x, y, z, is_tuples) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
data_name | character(len=*) | in | Data name. | |
u | real(kind=R8P) | in | U component of data variable. | |
v | real(kind=R8P) | in | V component of data variable. | |
w | real(kind=R8P) | in | W component of data variable. | |
x | real(kind=R8P) | in | X component of data variable. | |
y | real(kind=R8P) | in | Y component of data variable. | |
z | real(kind=R8P) | in | Z component of data variable. | |
is_tuples | logical | in | optional | Use "NumberOfTuples" instead of "NumberOfComponents". |
Call graph
write_dataarray6_rank3_R4P
Write a data array (R4P) of 6 components given one by one: a dataset of the open group.
Returns: integer(kind=I4P)
fortran
function write_dataarray6_rank3_R4P(self, data_name, u, v, w, x, y, z, is_tuples) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
data_name | character(len=*) | in | Data name. | |
u | real(kind=R4P) | in | U component of data variable. | |
v | real(kind=R4P) | in | V component of data variable. | |
w | real(kind=R4P) | in | W component of data variable. | |
x | real(kind=R4P) | in | X component of data variable. | |
y | real(kind=R4P) | in | Y component of data variable. | |
z | real(kind=R4P) | in | Z component of data variable. | |
is_tuples | logical | in | optional | Use "NumberOfTuples" instead of "NumberOfComponents". |
Call graph
write_dataarray6_rank3_I8P
Write a data array (I8P) of 6 components given one by one: a dataset of the open group.
Returns: integer(kind=I4P)
fortran
function write_dataarray6_rank3_I8P(self, data_name, u, v, w, x, y, z, is_tuples) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
data_name | character(len=*) | in | Data name. | |
u | integer(kind=I8P) | in | U component of data variable. | |
v | integer(kind=I8P) | in | V component of data variable. | |
w | integer(kind=I8P) | in | W component of data variable. | |
x | integer(kind=I8P) | in | X component of data variable. | |
y | integer(kind=I8P) | in | Y component of data variable. | |
z | integer(kind=I8P) | in | Z component of data variable. | |
is_tuples | logical | in | optional | Use "NumberOfTuples" instead of "NumberOfComponents". |
Call graph
write_dataarray6_rank3_I4P
Write a data array (I4P) of 6 components given one by one: a dataset of the open group.
Returns: integer(kind=I4P)
fortran
function write_dataarray6_rank3_I4P(self, data_name, u, v, w, x, y, z, is_tuples) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
data_name | character(len=*) | in | Data name. | |
u | integer(kind=I4P) | in | U component of data variable. | |
v | integer(kind=I4P) | in | V component of data variable. | |
w | integer(kind=I4P) | in | W component of data variable. | |
x | integer(kind=I4P) | in | X component of data variable. | |
y | integer(kind=I4P) | in | Y component of data variable. | |
z | integer(kind=I4P) | in | Z component of data variable. | |
is_tuples | logical | in | optional | Use "NumberOfTuples" instead of "NumberOfComponents". |
Call graph
write_dataarray6_rank3_I2P
Write a data array (I2P) of 6 components given one by one: a dataset of the open group.
Returns: integer(kind=I4P)
fortran
function write_dataarray6_rank3_I2P(self, data_name, u, v, w, x, y, z, is_tuples) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
data_name | character(len=*) | in | Data name. | |
u | integer(kind=I2P) | in | U component of data variable. | |
v | integer(kind=I2P) | in | V component of data variable. | |
w | integer(kind=I2P) | in | W component of data variable. | |
x | integer(kind=I2P) | in | X component of data variable. | |
y | integer(kind=I2P) | in | Y component of data variable. | |
z | integer(kind=I2P) | in | Z component of data variable. | |
is_tuples | logical | in | optional | Use "NumberOfTuples" instead of "NumberOfComponents". |
Call graph
write_dataarray6_rank3_I1P
Write a data array (I1P) of 6 components given one by one: a dataset of the open group.
Returns: integer(kind=I4P)
fortran
function write_dataarray6_rank3_I1P(self, data_name, u, v, w, x, y, z, is_tuples) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
data_name | character(len=*) | in | Data name. | |
u | integer(kind=I1P) | in | U component of data variable. | |
v | integer(kind=I1P) | in | V component of data variable. | |
w | integer(kind=I1P) | in | W component of data variable. | |
x | integer(kind=I1P) | in | X component of data variable. | |
y | integer(kind=I1P) | in | Y component of data variable. | |
z | integer(kind=I1P) | in | Z component of data variable. | |
is_tuples | logical | in | optional | Use "NumberOfTuples" instead of "NumberOfComponents". |
Call graph
write_dataarray_unsigned_I8P
Write a data array of unsigned values (the bits of I8P): a dataset of the open group.
Returns: integer(kind=I4P)
fortran
function write_dataarray_unsigned_I8P(self, data_name, x) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | ||
data_name | character(len=*) | in | ||
x | integer(kind=I8P) | in |
Call graph
write_dataarray_unsigned_I4P
Write a data array of unsigned values (the bits of I4P): a dataset of the open group.
Returns: integer(kind=I4P)
fortran
function write_dataarray_unsigned_I4P(self, data_name, x) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | ||
data_name | character(len=*) | in | ||
x | integer(kind=I4P) | in |
Call graph
write_dataarray_unsigned_I2P
Write a data array of unsigned values (the bits of I2P): a dataset of the open group.
Returns: integer(kind=I4P)
fortran
function write_dataarray_unsigned_I2P(self, data_name, x) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | ||
data_name | character(len=*) | in | ||
x | integer(kind=I2P) | in |
Call graph
write_dataarray_unsigned_I1P
Write a data array of unsigned values (the bits of I1P): a dataset of the open group.
Returns: integer(kind=I4P)
fortran
function write_dataarray_unsigned_I1P(self, data_name, x) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | ||
data_name | character(len=*) | in | ||
x | integer(kind=I1P) | in |
Call graph
write_geo_unst_data1_rank2_R8P
Write the points of the piece of an UnstructuredGrid or PolyData (R8P), xyz(1:3,1:np).
Returns: integer(kind=I4P)
fortran
function write_geo_unst_data1_rank2_R8P(self, np, nc, xyz) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | ||
np | integer(kind=I4P) | in | ||
nc | integer(kind=I4P) | in | ||
xyz | real(kind=R8P) | in |
Call graph
write_geo_unst_data3_rank1_R8P
Write the points of the piece of an UnstructuredGrid or PolyData (R8P), by coordinate.
Returns: integer(kind=I4P)
fortran
function write_geo_unst_data3_rank1_R8P(self, np, nc, x, y, z) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | ||
np | integer(kind=I4P) | in | ||
nc | integer(kind=I4P) | in | ||
x | real(kind=R8P) | in | ||
y | real(kind=R8P) | in | ||
z | real(kind=R8P) | in |
Call graph
write_geo_unst_data1_rank2_R8P_I8P
Write the points of the piece of an UnstructuredGrid or PolyData (R8P), xyz(1:3,1:np).
Returns: integer(kind=I4P)
fortran
function write_geo_unst_data1_rank2_R8P_I8P(self, np, nc, xyz) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | ||
np | integer(kind=I8P) | in | ||
nc | integer(kind=I8P) | in | ||
xyz | real(kind=R8P) | in |
Call graph
write_geo_unst_data3_rank1_R8P_I8P
Write the points of the piece of an UnstructuredGrid or PolyData (R8P), by coordinate.
Returns: integer(kind=I4P)
fortran
function write_geo_unst_data3_rank1_R8P_I8P(self, np, nc, x, y, z) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | ||
np | integer(kind=I8P) | in | ||
nc | integer(kind=I8P) | in | ||
x | real(kind=R8P) | in | ||
y | real(kind=R8P) | in | ||
z | real(kind=R8P) | in |
Call graph
write_geo_unst_data1_rank2_R4P
Write the points of the piece of an UnstructuredGrid or PolyData (R4P), xyz(1:3,1:np).
Returns: integer(kind=I4P)
fortran
function write_geo_unst_data1_rank2_R4P(self, np, nc, xyz) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | ||
np | integer(kind=I4P) | in | ||
nc | integer(kind=I4P) | in | ||
xyz | real(kind=R4P) | in |
Call graph
write_geo_unst_data3_rank1_R4P
Write the points of the piece of an UnstructuredGrid or PolyData (R4P), by coordinate.
Returns: integer(kind=I4P)
fortran
function write_geo_unst_data3_rank1_R4P(self, np, nc, x, y, z) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | ||
np | integer(kind=I4P) | in | ||
nc | integer(kind=I4P) | in | ||
x | real(kind=R4P) | in | ||
y | real(kind=R4P) | in | ||
z | real(kind=R4P) | in |
Call graph
write_geo_unst_data1_rank2_R4P_I8P
Write the points of the piece of an UnstructuredGrid or PolyData (R4P), xyz(1:3,1:np).
Returns: integer(kind=I4P)
fortran
function write_geo_unst_data1_rank2_R4P_I8P(self, np, nc, xyz) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | ||
np | integer(kind=I8P) | in | ||
nc | integer(kind=I8P) | in | ||
xyz | real(kind=R4P) | in |
Call graph
write_geo_unst_data3_rank1_R4P_I8P
Write the points of the piece of an UnstructuredGrid or PolyData (R4P), by coordinate.
Returns: integer(kind=I4P)
fortran
function write_geo_unst_data3_rank1_R4P_I8P(self, np, nc, x, y, z) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | ||
np | integer(kind=I8P) | in | ||
nc | integer(kind=I8P) | in | ||
x | real(kind=R4P) | in | ||
y | real(kind=R4P) | in | ||
z | real(kind=R4P) | in |
Call graph
write_connectivity_I4P
Write the cells of the piece of an UnstructuredGrid (I4P ids): connectivity, offsets (VTKFortran end offsets, written from 0 as VTKHDF wants them), types, and the faces of its polyhedra (face, faceoffset, checked before anything is written).
Returns: integer(kind=I4P)
fortran
function write_connectivity_I4P(self, nc, connectivity, offset, cell_type, face, faceoffset) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | ||
nc | integer(kind=I4P) | in | ||
connectivity | integer(kind=I4P) | in | ||
offset | integer(kind=I4P) | in | ||
cell_type | integer(kind=I1P) | in | ||
face | integer(kind=I4P) | in | optional | |
faceoffset | integer(kind=I4P) | in | optional |
Call graph
write_connectivity_I8P
Write the cells of the piece of an UnstructuredGrid (I8P ids): connectivity, offsets (VTKFortran end offsets, written from 0 as VTKHDF wants them), types, and the faces of its polyhedra (face, faceoffset, checked before anything is written).
Returns: integer(kind=I4P)
fortran
function write_connectivity_I8P(self, nc, connectivity, offset, cell_type, face, faceoffset) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | ||
nc | integer(kind=I8P) | in | ||
connectivity | integer(kind=I8P) | in | ||
offset | integer(kind=I8P) | in | ||
cell_type | integer(kind=I1P) | in | ||
face | integer(kind=I8P) | in | optional | |
faceoffset | integer(kind=I8P) | in | optional |
Call graph
write_piece_start_tag_unst
Start a piece of an UnstructuredGrid: a partition of the file.
Returns: integer(kind=I4P)
fortran
function write_piece_start_tag_unst(self, np, nc) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | ||
np | integer(kind=I4P) | in | ||
nc | integer(kind=I4P) | in |
Call graph
write_piece_start_tag_unst_I8P
Start a piece of an UnstructuredGrid (I8P counts): a partition of the file.
Returns: integer(kind=I4P)
fortran
function write_piece_start_tag_unst_I8P(self, np, nc) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | ||
np | integer(kind=I8P) | in | ||
nc | integer(kind=I8P) | in |
Call graph
write_piece_start_tag_poly
Start a piece of a PolyData: a partition of the file, with the cells of each block.
Returns: integer(kind=I4P)
fortran
function write_piece_start_tag_poly(self, np, nverts, nlines, nstrips, npolys) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | ||
np | integer(kind=I4P) | in | ||
nverts | integer(kind=I4P) | in | ||
nlines | integer(kind=I4P) | in | ||
nstrips | integer(kind=I4P) | in | ||
npolys | integer(kind=I4P) | in |
Call graph
write_piece_start_tag_poly_I8P
Start a piece of a PolyData (I8P counts): a partition of the file, with the cells of each block.
Returns: integer(kind=I4P)
fortran
function write_piece_start_tag_poly_I8P(self, np, nverts, nlines, nstrips, npolys) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | ||
np | integer(kind=I8P) | in | ||
nverts | integer(kind=I8P) | in | ||
nlines | integer(kind=I8P) | in | ||
nstrips | integer(kind=I8P) | in | ||
npolys | integer(kind=I8P) | in |
Call graph
write_polydata_cells
Write the cells of the piece of a PolyData: each block given (connectivity and end offsets, I4P or I8P) in its group (Vertices, Lines, Strips, Polygons), offsets from 0; a block not given has no cells (zero entries). Every block is checked before any is written.
Returns: integer(kind=I4P)
fortran
function write_polydata_cells(self, verts_connectivity, verts_offset, lines_connectivity, lines_offset, strips_connectivity, strips_offset, polys_connectivity, polys_offset) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | ||
verts_connectivity | class(*) | in | optional | |
verts_offset | class(*) | in | optional | |
lines_connectivity | class(*) | in | optional | |
lines_offset | class(*) | in | optional | |
strips_connectivity | class(*) | in | optional | |
strips_offset | class(*) | in | optional | |
polys_connectivity | class(*) | in | optional | |
polys_offset | class(*) | in | optional |
Call graph
write_geo_rect_data3_rank1_R8P
Write the coordinates of a RectilinearGrid (R8P): XCoordinates, YCoordinates, ZCoordinates.
Returns: integer(kind=I4P)
fortran
function write_geo_rect_data3_rank1_R8P(self, x, y, z) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | ||
x | real(kind=R8P) | in | ||
y | real(kind=R8P) | in | ||
z | real(kind=R8P) | in |
Call graph
write_geo_strg_data1_rank2_R8P
Write the points of a StructuredGrid (R8P), xyz(1:3,1:n), x fastest: the dataset Points.
Returns: integer(kind=I4P)
fortran
function write_geo_strg_data1_rank2_R8P(self, xyz) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | ||
xyz | real(kind=R8P) | in |
Call graph
write_geo_strg_data1_rank4_R8P
Write the points of a StructuredGrid (R8P), xyz(1:3,nx1:nx2,ny1:ny2,nz1:nz2): the dataset Points.
Returns: integer(kind=I4P)
fortran
function write_geo_strg_data1_rank4_R8P(self, xyz) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | ||
xyz | real(kind=R8P) | in |
Call graph
write_geo_strg_data3_rank1_R8P
Write the points of a StructuredGrid (R8P), by coordinate, x fastest: the dataset Points.
Returns: integer(kind=I4P)
fortran
function write_geo_strg_data3_rank1_R8P(self, n, x, y, z) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | ||
n | integer(kind=I4P) | in | ||
x | real(kind=R8P) | in | ||
y | real(kind=R8P) | in | ||
z | real(kind=R8P) | in |
Call graph
write_geo_strg_data3_rank3_R8P
Write the points of a StructuredGrid (R8P), by coordinate, x fastest: the dataset Points.
Returns: integer(kind=I4P)
fortran
function write_geo_strg_data3_rank3_R8P(self, n, x, y, z) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | ||
n | integer(kind=I4P) | in | ||
x | real(kind=R8P) | in | ||
y | real(kind=R8P) | in | ||
z | real(kind=R8P) | in |
Call graph
write_geo_rect_data3_rank1_R4P
Write the coordinates of a RectilinearGrid (R4P): XCoordinates, YCoordinates, ZCoordinates.
Returns: integer(kind=I4P)
fortran
function write_geo_rect_data3_rank1_R4P(self, x, y, z) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | ||
x | real(kind=R4P) | in | ||
y | real(kind=R4P) | in | ||
z | real(kind=R4P) | in |
Call graph
write_geo_strg_data1_rank2_R4P
Write the points of a StructuredGrid (R4P), xyz(1:3,1:n), x fastest: the dataset Points.
Returns: integer(kind=I4P)
fortran
function write_geo_strg_data1_rank2_R4P(self, xyz) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | ||
xyz | real(kind=R4P) | in |
Call graph
write_geo_strg_data1_rank4_R4P
Write the points of a StructuredGrid (R4P), xyz(1:3,nx1:nx2,ny1:ny2,nz1:nz2): the dataset Points.
Returns: integer(kind=I4P)
fortran
function write_geo_strg_data1_rank4_R4P(self, xyz) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | ||
xyz | real(kind=R4P) | in |
Call graph
write_geo_strg_data3_rank1_R4P
Write the points of a StructuredGrid (R4P), by coordinate, x fastest: the dataset Points.
Returns: integer(kind=I4P)
fortran
function write_geo_strg_data3_rank1_R4P(self, n, x, y, z) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | ||
n | integer(kind=I4P) | in | ||
x | real(kind=R4P) | in | ||
y | real(kind=R4P) | in | ||
z | real(kind=R4P) | in |
Call graph
write_geo_strg_data3_rank3_R4P
Write the points of a StructuredGrid (R4P), by coordinate, x fastest: the dataset Points.
Returns: integer(kind=I4P)
fortran
function write_geo_strg_data3_rank3_R4P(self, n, x, y, z) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | ||
n | integer(kind=I4P) | in | ||
x | real(kind=R4P) | in | ||
y | real(kind=R4P) | in | ||
z | real(kind=R4P) | in |
Call graph
put_R8P
Write n values (R8P) as the dataset data_name of the open group: in an UnstructuredGrid or PolyData, created by the first piece and appended to by the others.
Returns: integer(kind=I4P)
fortran
function put_R8P(self, data_name, x, n, n_components) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
data_name | character(len=*) | in | Data name. | |
x | real(kind=R8P) | in | Values. | |
n | integer(kind=I8P) | in | Number of values. | |
n_components | integer(kind=I4P) | in | Number of components. |
Call graph
put_R4P
Write n values (R4P) as the dataset data_name of the open group: in an UnstructuredGrid or PolyData, created by the first piece and appended to by the others.
Returns: integer(kind=I4P)
fortran
function put_R4P(self, data_name, x, n, n_components) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
data_name | character(len=*) | in | Data name. | |
x | real(kind=R4P) | in | Values. | |
n | integer(kind=I8P) | in | Number of values. | |
n_components | integer(kind=I4P) | in | Number of components. |
Call graph
put_I8P
Write n values (I8P) as the dataset data_name of the open group: in an UnstructuredGrid or PolyData, created by the first piece and appended to by the others.
Returns: integer(kind=I4P)
fortran
function put_I8P(self, data_name, x, n, n_components, unsigned) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
data_name | character(len=*) | in | Data name. | |
x | integer(kind=I8P) | in | Values. | |
n | integer(kind=I8P) | in | Number of values. | |
n_components | integer(kind=I4P) | in | Number of components. | |
unsigned | logical | in | optional | Unsigned values. |
Call graph
put_I4P
Write n values (I4P) as the dataset data_name of the open group: in an UnstructuredGrid or PolyData, created by the first piece and appended to by the others.
Returns: integer(kind=I4P)
fortran
function put_I4P(self, data_name, x, n, n_components, unsigned) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
data_name | character(len=*) | in | Data name. | |
x | integer(kind=I4P) | in | Values. | |
n | integer(kind=I8P) | in | Number of values. | |
n_components | integer(kind=I4P) | in | Number of components. | |
unsigned | logical | in | optional | Unsigned values. |
Call graph
put_I2P
Write n values (I2P) as the dataset data_name of the open group: in an UnstructuredGrid or PolyData, created by the first piece and appended to by the others.
Returns: integer(kind=I4P)
fortran
function put_I2P(self, data_name, x, n, n_components, unsigned) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
data_name | character(len=*) | in | Data name. | |
x | integer(kind=I2P) | in | Values. | |
n | integer(kind=I8P) | in | Number of values. | |
n_components | integer(kind=I4P) | in | Number of components. | |
unsigned | logical | in | optional | Unsigned values. |
Call graph
put_I1P
Write n values (I1P) as the dataset data_name of the open group: in an UnstructuredGrid or PolyData, created by the first piece and appended to by the others.
Returns: integer(kind=I4P)
fortran
function put_I1P(self, data_name, x, n, n_components, unsigned) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
data_name | character(len=*) | in | Data name. | |
x | integer(kind=I1P) | in | Values. | |
n | integer(kind=I8P) | in | Number of values. | |
n_components | integer(kind=I4P) | in | Number of components. | |
unsigned | logical | in | optional | Unsigned values. |
Call graph
store_R8P
Create the appendable dataset name (R8P) with x, or append x to it if it exists; with a communicator, collective.
Returns: integer(kind=I4P)
fortran
function store_R8P(self, loc_id, name, x, dims) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | in | Writer. | |
loc_id | integer(kind=hid_kind) | in | Parent group. | |
name | character(len=*) | in | Dataset name. | |
x | real(kind=R8P) | in | Values. | |
dims | integer(kind=I8P) | in | Shape of the values, Fortran order (the last dimension grows). |
Call graph
store_R4P
Create the appendable dataset name (R4P) with x, or append x to it if it exists; with a communicator, collective.
Returns: integer(kind=I4P)
fortran
function store_R4P(self, loc_id, name, x, dims) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | in | Writer. | |
loc_id | integer(kind=hid_kind) | in | Parent group. | |
name | character(len=*) | in | Dataset name. | |
x | real(kind=R4P) | in | Values. | |
dims | integer(kind=I8P) | in | Shape of the values, Fortran order (the last dimension grows). |
Call graph
store_I8P
Create the appendable dataset name (I8P) with x, or append x to it if it exists; with a communicator, collective.
Returns: integer(kind=I4P)
fortran
function store_I8P(self, loc_id, name, x, dims, unsigned) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | in | Writer. | |
loc_id | integer(kind=hid_kind) | in | Parent group. | |
name | character(len=*) | in | Dataset name. | |
x | integer(kind=I8P) | in | Values. | |
dims | integer(kind=I8P) | in | Shape of the values, Fortran order (the last dimension grows). | |
unsigned | logical | in | optional | Unsigned values. |
Call graph
store_I4P
Create the appendable dataset name (I4P) with x, or append x to it if it exists; with a communicator, collective.
Returns: integer(kind=I4P)
fortran
function store_I4P(self, loc_id, name, x, dims, unsigned) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | in | Writer. | |
loc_id | integer(kind=hid_kind) | in | Parent group. | |
name | character(len=*) | in | Dataset name. | |
x | integer(kind=I4P) | in | Values. | |
dims | integer(kind=I8P) | in | Shape of the values, Fortran order (the last dimension grows). | |
unsigned | logical | in | optional | Unsigned values. |
Call graph
store_I2P
Create the appendable dataset name (I2P) with x, or append x to it if it exists; with a communicator, collective.
Returns: integer(kind=I4P)
fortran
function store_I2P(self, loc_id, name, x, dims, unsigned) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | in | Writer. | |
loc_id | integer(kind=hid_kind) | in | Parent group. | |
name | character(len=*) | in | Dataset name. | |
x | integer(kind=I2P) | in | Values. | |
dims | integer(kind=I8P) | in | Shape of the values, Fortran order (the last dimension grows). | |
unsigned | logical | in | optional | Unsigned values. |
Call graph
store_I1P
Create the appendable dataset name (I1P) with x, or append x to it if it exists; with a communicator, collective.
Returns: integer(kind=I4P)
fortran
function store_I1P(self, loc_id, name, x, dims, unsigned) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | in | Writer. | |
loc_id | integer(kind=hid_kind) | in | Parent group. | |
name | character(len=*) | in | Dataset name. | |
x | integer(kind=I1P) | in | Values. | |
dims | integer(kind=I8P) | in | Shape of the values, Fortran order (the last dimension grows). | |
unsigned | logical | in | optional | Unsigned values. |
Call graph
put_points_R8P
Append the points (R8P) of the piece to the dataset Points ([np, 3] in C order).
Returns: integer(kind=I4P)
fortran
function put_points_R8P(self, np, nc, xyz, n1, n2) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
np | integer(kind=I8P) | in | Number of points. | |
nc | integer(kind=I8P) | in | Number of cells. | |
xyz | real(kind=R8P) | in | Coordinates, interleaved (x, y, z of each point). | |
n1 | integer(kind=I8P) | in | First dimension of the coordinates (3). | |
n2 | integer(kind=I8P) | in | Second dimension of the coordinates (np). |
Call graph
put_points_R4P
Append the points (R4P) of the piece to the dataset Points ([np, 3] in C order).
Returns: integer(kind=I4P)
fortran
function put_points_R4P(self, np, nc, xyz, n1, n2) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
np | integer(kind=I8P) | in | Number of points. | |
nc | integer(kind=I8P) | in | Number of cells. | |
xyz | real(kind=R4P) | in | Coordinates, interleaved (x, y, z of each point). | |
n1 | integer(kind=I8P) | in | First dimension of the coordinates (3). | |
n2 | integer(kind=I8P) | in | Second dimension of the coordinates (np). |
Call graph
put_cells_I4P
Append the cells (I4P ids) of the piece: Connectivity, Offsets (from 0), Types, NumberOfConnectivityIds.
Returns: integer(kind=I4P)
fortran
function put_cells_I4P(self, nc, connectivity, offset, cell_type) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
nc | integer(kind=I8P) | in | Number of cells. | |
connectivity | integer(kind=I4P) | in | Point ids of the cells, from 0 in the piece. | |
offset | integer(kind=I4P) | in | End offset of each cell in the connectivity. | |
cell_type | integer(kind=I1P) | in | VTK cell types. |
Call graph
put_cells_I8P
Append the cells (I8P ids) of the piece: Connectivity, Offsets (from 0), Types, NumberOfConnectivityIds.
Returns: integer(kind=I4P)
fortran
function put_cells_I8P(self, nc, connectivity, offset, cell_type) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
nc | integer(kind=I8P) | in | Number of cells. | |
connectivity | integer(kind=I8P) | in | Point ids of the cells, from 0 in the piece. | |
offset | integer(kind=I8P) | in | End offset of each cell in the connectivity. | |
cell_type | integer(kind=I1P) | in | VTK cell types. |
Call graph
put_coordinates_R8P
Write the coordinates (R8P) of a RectilinearGrid: XCoordinates, YCoordinates, ZCoordinates.
Returns: integer(kind=I4P)
fortran
function put_coordinates_R8P(self, x, y, z) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
x | real(kind=R8P) | in | X coordinates. | |
y | real(kind=R8P) | in | Y coordinates. | |
z | real(kind=R8P) | in | Z coordinates. |
Call graph
put_axis_R8P
Write the coordinates (R8P) of the axis a of a RectilinearGrid from the ranks of comm: the dataset created by every rank, then the entries of the region of this rank that no rank before has (collective).
Returns: integer(kind=I4P)
fortran
function put_axis_R8P(self, name, a, values) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | in | Writer. | |
name | character(len=*) | in | Dataset of the coordinates. | |
a | integer(kind=I4P) | in | Axis: 1 x, 2 y, 3 z. | |
values | real(kind=R8P) | in | Coordinates of the region of this rank along the axis. |
Call graph
put_grid_points_R8P
Write the points (R8P) of a StructuredGrid: the dataset Points, [k, j, i, 3] in C order (always 4D, as VTK requires).
Returns: integer(kind=I4P)
fortran
function put_grid_points_R8P(self, xyz, n1, n) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
xyz | real(kind=R8P) | in | Coordinates, interleaved (x, y, z of each point), x fastest. | |
n1 | integer(kind=I8P) | in | First dimension of the coordinates (3). | |
n | integer(kind=I8P) | in | Number of points. |
Call graph
put_coordinates_R4P
Write the coordinates (R4P) of a RectilinearGrid: XCoordinates, YCoordinates, ZCoordinates.
Returns: integer(kind=I4P)
fortran
function put_coordinates_R4P(self, x, y, z) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
x | real(kind=R4P) | in | X coordinates. | |
y | real(kind=R4P) | in | Y coordinates. | |
z | real(kind=R4P) | in | Z coordinates. |
Call graph
put_axis_R4P
Write the coordinates (R4P) of the axis a of a RectilinearGrid from the ranks of comm: the dataset created by every rank, then the entries of the region of this rank that no rank before has (collective).
Returns: integer(kind=I4P)
fortran
function put_axis_R4P(self, name, a, values) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | in | Writer. | |
name | character(len=*) | in | Dataset of the coordinates. | |
a | integer(kind=I4P) | in | Axis: 1 x, 2 y, 3 z. | |
values | real(kind=R4P) | in | Coordinates of the region of this rank along the axis. |
Call graph
put_grid_points_R4P
Write the points (R4P) of a StructuredGrid: the dataset Points, [k, j, i, 3] in C order (always 4D, as VTK requires).
Returns: integer(kind=I4P)
fortran
function put_grid_points_R4P(self, xyz, n1, n) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
xyz | real(kind=R4P) | in | Coordinates, interleaved (x, y, z of each point), x fastest. | |
n1 | integer(kind=I8P) | in | First dimension of the coordinates (3). | |
n | integer(kind=I8P) | in | Number of points. |
Call graph
put_faces_I4P
Check (check_only) or append the faces (I4P ids) of the polyhedra of an UnstructuredGrid piece: VTKFortran's stream (for each polyhedron the number of its faces, then for each face the number of its points and their ids) becomes FaceConnectivity, FaceOffsets, PolyhedronToFaces, PolyhedronOffsets and the counts of the piece (VTKHDF 2.5). A cell is a polyhedron (type 42) if and only if its faceoffset is not -1.
Returns: integer(kind=I4P)
fortran
function put_faces_I4P(self, nc, face, faceoffset, cell_type, check_only) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
nc | integer(kind=I8P) | in | Number of cells. | |
face | integer(kind=I4P) | in | Faces of each polyhedron with their points (VTKFortran stream). | |
faceoffset | integer(kind=I4P) | in | End of the faces of each cell in face, -1 if not a polyhedron. | |
cell_type | integer(kind=I1P) | in | VTK cell types. | |
check_only | logical | in | Check the faces, write nothing. |
Call graph
put_faces_I8P
Check (check_only) or append the faces (I8P ids) of the polyhedra of an UnstructuredGrid piece: VTKFortran's stream (for each polyhedron the number of its faces, then for each face the number of its points and their ids) becomes FaceConnectivity, FaceOffsets, PolyhedronToFaces, PolyhedronOffsets and the counts of the piece (VTKHDF 2.5). A cell is a polyhedron (type 42) if and only if its faceoffset is not -1.
Returns: integer(kind=I4P)
fortran
function put_faces_I8P(self, nc, face, faceoffset, cell_type, check_only) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
nc | integer(kind=I8P) | in | Number of cells. | |
face | integer(kind=I8P) | in | Faces of each polyhedron with their points (VTKFortran stream). | |
faceoffset | integer(kind=I8P) | in | End of the faces of each cell in face, -1 if not a polyhedron. | |
cell_type | integer(kind=I1P) | in | VTK cell types. | |
check_only | logical | in | Check the faces, write nothing. |
Call graph
put_block_I4P
Check (check_only) or append the block b (I4P ids) of the cells of a PolyData piece to its group: Connectivity, Offsets (from 0), NumberOfCells, NumberOfConnectivityIds.
Returns: integer(kind=I4P)
fortran
function put_block_I4P(self, b, check_only, connectivity, offset) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
b | integer(kind=I4P) | in | Block: 1 vertices, 2 lines, 3 strips, 4 polygons. | |
check_only | logical | in | Check the block, write nothing. | |
connectivity | integer(kind=I4P) | in | Point ids of the cells, from 0 in the piece. | |
offset | integer(kind=I4P) | in | End offset of each cell in the connectivity. |
Call graph
put_block_I8P
Check (check_only) or append the block b (I8P ids) of the cells of a PolyData piece to its group: Connectivity, Offsets (from 0), NumberOfCells, NumberOfConnectivityIds.
Returns: integer(kind=I4P)
fortran
function put_block_I8P(self, b, check_only, connectivity, offset) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
b | integer(kind=I4P) | in | Block: 1 vertices, 2 lines, 3 strips, 4 polygons. | |
check_only | logical | in | Check the block, write nothing. | |
connectivity | integer(kind=I8P) | in | Point ids of the cells, from 0 in the piece. | |
offset | integer(kind=I8P) | in | End offset of each cell in the connectivity. |
Call graph
check_cells
Check a write_connectivity call: an UnstructuredGrid piece open (no data group), its cells once, sizes.
Returns: integer(kind=I4P)
fortran
function check_cells(self, nc, n_offset, n_types) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | in | Writer. | |
nc | integer(kind=I8P) | in | Number of cells. | |
n_offset | integer(kind=I8P) | in | Size of the offsets. | |
n_types | integer(kind=I8P) | in | Size of the cell types. |
Call graph
check_geo
Check a write_geo call: an UnstructuredGrid or PolyData piece open (no data group), its points once, sizes. The number of cells is checked for an UnstructuredGrid only: for a PolyData it is not used, as in the XML formats.
Returns: integer(kind=I4P)
fortran
function check_geo(self, np, nc, n1, n2) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | in | Writer. | |
np | integer(kind=I8P) | in | Number of points. | |
nc | integer(kind=I8P) | in | Number of cells. | |
n1 | integer(kind=I8P) | in | First dimension of the coordinates. | |
n2 | integer(kind=I8P) | in | Second dimension of the coordinates. |
Call graph
check_grid_geo
Check a write_geo call of a RectilinearGrid (topology TOPOLOGY_RECT) or a StructuredGrid (TOPOLOGY_STRG): its piece open (no data group), its geometry once.
Returns: integer(kind=I4P)
fortran
function check_grid_geo(self, topology) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | in | Writer. | |
topology | integer(kind=I4P) | in | Topology of the call. |
Call graph
close_group
Close the open data group (and forget its active arrays).
Returns: integer(kind=I4P)
fortran
function close_group(self) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. |
Call graph
dataset_dims
Shape (Fortran order) of the dataset of n values of n_components components in the open group.
Point and cell data are shaped as the grid, [n_components, ni, nj, nk]: ni points along x for point data, ni-1 cells for cell data (ImageData, RectilinearGrid, StructuredGrid). The axes of one point (a 2D or 1D grid) are dropped, as VTK writes and requires (VTK 9.7 reads neither a size-1 axis nor a flat array), and so is the first dimension with one component. Field data are [n_components, n_tuples]. In an UnstructuredGrid or a PolyData, the tuples are the points or cells of the piece, [n_components, n] (the cells of a PolyData in the order of the blocks: vertices, lines, strips, polygons).
Returns: integer(kind=I4P)
fortran
function dataset_dims(self, data_name, n, n_components, dims) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | in | Writer. | |
data_name | character(len=*) | in | Data name (for the messages). | |
n | integer(kind=I8P) | in | Number of values. | |
n_components | integer(kind=I4P) | in | Number of components. | |
dims | integer(kind=I8P) | out | allocatable | Shape of the dataset. |
Call graph
end_partition
End a piece of an UnstructuredGrid or PolyData: its points and cells written, every array of the first piece written once. A PolyData piece without cells needs no write_polydata_cells: its four blocks get zero entries.
Returns: integer(kind=I4P)
fortran
function end_partition(self) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. |
Call graph
grid_points
Points of the grid along each axis, from the whole extent (ImageData, RectilinearGrid, StructuredGrid).
Attributes: pure
Returns: integer(kind=I8P)
fortran
function grid_points(self) result(grid)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | in | Writer. |
Call graph
deflate_level
Deflate level of the datasets: 0 (none) unless compressed.
Attributes: pure
Returns: integer(kind=I4P)
fortran
function deflate_level(self) result(level)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | in | Writer. |
Call graph
is_partitioned
Return true if the pieces are partitions of the file (UnstructuredGrid, PolyData), false for a grid of one piece.
Attributes: elemental
Returns: logical
fortran
function is_partitioned(self) result(is_partitioned_)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | in | Writer. |
Call graph
mark_active
Mark the dataset data_name of the open point or cell data group as the active array of its role, if it is one.
Returns: integer(kind=I4P)
fortran
function mark_active(self, data_name) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
data_name | character(len=*) | in | Data name. |
Call graph
open_group
Open the data group name of /VTKHDF (of the open level of an OverlappingAMR), creating it (creation order tracked: the arrays keep the order written).
Returns: integer(kind=I4P)
fortran
function open_group(self, name) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
name | character(len=*) | in | Group name. |
Call graph
add_face_totals
Add the faces of the polyhedra of a piece to the running totals: point ids of the faces, faces, faces of the polyhedra; with comm, those of all the ranks (collective: every rank calls it, its own counts or zeros).
Returns: integer(kind=I4P)
fortran
function add_face_totals(self, n_face_ids, n_faces) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
n_face_ids | integer(kind=I8P) | in | Point ids of the faces of the piece. | |
n_faces | integer(kind=I8P) | in | Faces of the piece. |
Call graph
no_faces
Write the zero entries of a piece without polyhedra, of nc cells, in a file with polyhedra: no faces, and the nc+1 polyhedron offsets all 0.
Returns: integer(kind=I4P)
fortran
function no_faces(self, nc) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
nc | integer(kind=I8P) | in | Cells of the piece. |
Call graph
poly_block
Check (check_only) or write the block b of the cells of a PolyData piece, given by its connectivity and its end offsets (I4P or I8P each; both converted to I8P when their kinds differ). A block not given must have no cells in the piece: its group gets zero entries.
Returns: integer(kind=I4P)
fortran
function poly_block(self, b, check_only, connectivity, offset) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
b | integer(kind=I4P) | in | Block: 1 vertices, 2 lines, 3 strips, 4 polygons. | |
check_only | logical | in | Check the block, write nothing. | |
connectivity | class(*) | in | optional | Point ids of the cells, from 0 in the piece. |
offset | class(*) | in | optional | End offset of each cell in the connectivity. |
Call graph
poly_blocks
Check (check_only) or write the four blocks of the cells of a PolyData piece, in the order of their groups.
Returns: integer(kind=I4P)
fortran
function poly_blocks(self, check_only, verts_connectivity, verts_offset, lines_connectivity, lines_offset, strips_connectivity, strips_offset, polys_connectivity, polys_offset) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
check_only | logical | in | Check the blocks, write nothing. | |
verts_connectivity | class(*) | in | optional | Vertices connectivity. |
verts_offset | class(*) | in | optional | Vertices offsets. |
lines_connectivity | class(*) | in | optional | Lines connectivity. |
lines_offset | class(*) | in | optional | Lines offsets. |
strips_connectivity | class(*) | in | optional | Triangle strips connectivity. |
strips_offset | class(*) | in | optional | Triangle strips offsets. |
polys_connectivity | class(*) | in | optional | Polygons connectivity. |
polys_offset | class(*) | in | optional | Polygons offsets. |
Call graph
put_strings
Write field data strings as vtkHDFWriter writes a vtkStringArray: a dataset of variable-length strings (trailing blanks dropped), appended to step after step in a time series (FieldDataOffsets/FieldDataSizes as numeric field data). Refused with a communicator (parallel HDF5 writes no variable-length type).
Returns: integer(kind=I4P)
fortran
function put_strings(self, data_name, x) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
data_name | character(len=*) | in | Data name. | |
x | character(len=*) | in | Strings. |
Call graph
check_arrays
Check that every point (group PointData) or cell (CellData) array holds rows tuples (time slices for a grid) more than at the start of the open step, or none when may_reuse (it reuses its values of the step before).
Returns: integer(kind=I4P)
fortran
function check_arrays(self, group, rows, may_reuse) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | in | Writer. | |
group | character(len=*) | in | PointData or CellData. | |
rows | integer(kind=I8P) | in | Tuples (slices) written in the open step by an array written in it. | |
may_reuse | logical | in | An array may be left out of the open step. |
Call graph
is_reusing
Return true if the open step is a step after the first one without pieces: it reuses the mesh of the step before.
Attributes: elemental
Returns: logical
fortran
function is_reusing(self) result(is_reusing_)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | in | Writer. |
Call graph
start_region
Start the region of this rank of a grid written from the ranks of comm: the regions of all the ranks are gathered and checked on every rank (the same refusal on each): inside the whole extent, with cells along every axis of more than one point (or empty: an upper bound before its lower one), not overlapping, covering the whole extent.
Returns: integer(kind=I4P)
fortran
function start_region(self, extent) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
extent | integer(kind=I4P) | in | Region of this rank: nx1, nx2, ny1, ny2, nz1, nz2. |
Call graph
agree_name
With comm, refuse on every rank the array data_name when the ranks write different arrays at this call (each rank compares a hash of its name with those of the others: collective). A rank leaving a call out is not detected.
Returns: integer(kind=I4P)
fortran
function agree_name(self, data_name) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | in | Writer. | |
data_name | character(len=*) | in | Name of the array of this rank. |
Call graph
agree
With comm, the largest error of the ranks: a refusal by one rank (a size of its own values, say) is a refusal by every rank, before the collective calls that would leave the others waiting; the error itself without comm.
Returns: integer(kind=I4P)
fortran
function agree(self, error) result(agreed)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | in | Writer. | |
error | integer(kind=I4P) | in | Error of this rank. |
Call graph
end_table
End the columns of a Table (the static table, or a step of a time series): every column written once, with the rows of the others; NumberOfRows (one entry per step), and the Steps entries of the step (time, RowDataOffsets of each column): the file is valid after it.
Returns: integer(kind=I4P)
fortran
function end_table(self) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. |
Call graph
open_level
Open the level level of an OverlappingAMR, the group Level<level> (created with its Spacing for a new level).
Returns: integer(kind=I4P)
fortran
function open_level(self, level, spacing) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
level | integer(kind=I4P) | in | Level, from 0. | |
spacing | real(kind=R8P) | in | Spacing of the level. |
Call graph
start_box
Start a box of the open level of an OverlappingAMR: its point extent nx1, nx2, ... (at least one cell along every axis: VTK reads every box in 3D), inside the bounds of the boxes of level 0 (of the step) for a finer level; its row of AMRBox, the cells nx1, nx2-1, ny1, ny2-1, nz1, nz2-1.
Returns: integer(kind=I4P)
fortran
function start_box(self, extent) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
extent | integer(kind=I4P) | in | Point extent of the box. |
Call graph
end_box
End a box of an OverlappingAMR: every point and cell array written once in it (every box of every level writes the same arrays).
Returns: integer(kind=I4P)
fortran
function end_box(self) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. |
Call graph
end_trees
End the piece of a HyperTreeGrid: its trees written (bits packed, MSB first: Descriptors, Mask), their counts; in a time series appended to those of the steps before (each step from a new byte), the mask always written.
Returns: integer(kind=I4P)
fortran
function end_trees(self) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. |
Call graph
is_table_complete
Return true if the Table has its NumberOfRows entry of every step (one for a static Table): the close of its columns was not refused.
Returns: logical
fortran
function is_table_complete(self) result(complete)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | in | Writer. |
Call graph
is_recorded
Return true if data_name is recorded in the list of the open data group (point or cell data).
Attributes: pure
Returns: logical
fortran
function is_recorded(self, data_name) result(is_recorded_)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | in | Writer. | |
data_name | character(len=*) | in | Data name. |
Call graph
end_reusing
Check the arrays of a step without pieces (each one written for all the points or cells of the mesh reused, or not at all) and write the Steps entries of the step.
Returns: integer(kind=I4P)
fortran
function end_reusing(self) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. |
Call graph
is_written_in_step
Return true if a point or cell array is written in the open step (or its shape cannot be read).
Returns: logical
fortran
function is_written_in_step(self) result(is_written)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | in | Writer. |
Call graph
roll_arrays
Start the bookkeeping of the point and cell arrays for a new step: the offset of the step before (where the array was written in it, or its offset before when it was not) and the tuples (slices) of the array at the new start.
Returns: integer(kind=I4P)
fortran
function roll_arrays(self) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. |
Call graph
reopen
Reopen a VTKHDF time series to append steps (vtk_file%initialize(format='vtkhdf', filename=..., action='append')), reopen_file; when it is refused, the file is closed as it is and the writer reset: a finalize after a refused reopen writes nothing (it returns an error).
Returns: integer(kind=I4P)
fortran
function reopen(self, filename) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
filename | character(len=*) | in | File name. |
Call graph
reopen_file
Read the state of a VTKHDF time series reopened to append steps: its topology, extent, steps, the totals of its pieces and its arrays are read from the file, and its datasets trimmed to the pieces recorded by the last complete piece (the Steps entries): what an interrupted run left after it is dropped. The next write_step needs a time after the last one of the file.
Returns: integer(kind=I4P)
fortran
function reopen_file(self, filename) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
filename | character(len=*) | in | File name. |
Call graph
start_partition
Start a piece of an UnstructuredGrid or PolyData: a partition, its counts appended to NumberOfPoints (and NumberOfCells for an UnstructuredGrid; the blocks of a PolyData get theirs with their cells).
Returns: integer(kind=I4P)
fortran
function start_partition(self, np, nc, block_cells) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
np | integer(kind=I8P) | in | Number of points. | |
nc | integer(kind=I8P) | in | Number of cells. | |
block_cells | integer(kind=I8P) | in | optional | Cells of each block (PolyData). |
Call graph
start_polyhedra
Start the polyhedra of the file, at the first piece that has some: the earlier pieces get their zero entries (from their counts of cells), and the version is at least 2.5.
Returns: integer(kind=I4P)
fortran
function start_polyhedra(self) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. |
Call graph
step_entry
Write the entry of the open step (the last one, n_steps) of the dataset Steps/name: the dataset is trimmed to the steps before (an entry written at the end of an earlier piece of the step is replaced), or created with zero entries for them; values is one value, or one row ([NSteps, size(values)] in C order).
Returns: integer(kind=I4P)
fortran
function step_entry(self, name, values) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. | |
name | character(len=*) | in | Dataset name in Steps. | |
values | integer(kind=I8P) | in | Values of the step. |
Call graph
write_steps
Write the Steps entries of the open step (time, offsets of the parts, points, cells, ids, faces, coordinates and field data), NSteps and Version, and flush the file: called at the end of every piece of a time series, it leaves the file valid, with the steps written so far.
Returns: integer(kind=I4P)
fortran
function write_steps(self) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | inout | Writer. |
Call graph
store_zeros
Append count zeros to the dataset name, from rank 0 (rows 1, 0 on the others), in blocks of at most ZERO_BLOCK values (zeros, of that size on rank 0): collective, as many blocks on every rank; the dataset is created by the first block even when count is 0.
Returns: integer(kind=I4P)
fortran
function store_zeros(self, zeros, rows, name, count) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(vtkhdf_writer) | in | Writer. | |
zeros | integer(kind=I8P) | in | Zeros (a block, on rank 0). | |
rows | integer(kind=I8P) | in | 1 on rank 0, 0 on the others. | |
name | character(len=*) | in | Dataset. | |
count | integer(kind=I8P) | in | Zeros appended. |
Call graph
array_tuples
Return the tuples (time slices for a grid of a time series), the last dimension, of every array of the list.
Returns: integer(kind=I4P)
fortran
function array_tuples(root, group, names, tuples) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
root | integer(kind=hid_kind) | in | Group /VTKHDF. | |
group | character(len=*) | in | Group of the arrays. | |
names | character(len=*) | in | Names, each followed by NAMES_SEPARATOR. | |
tuples | integer(kind=I8P) | out | allocatable | Tuples of each array. |
Call graph
pack_bits
Pack bits in bytes, the first bit the most significant one of the first byte (the last byte padded with zeros), as VTK packs the Descriptors and Mask of a HyperTreeGrid.
Attributes: pure
Returns: integer(kind=I1P)
fortran
function pack_bits(bits) result(bytes)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
bits | logical | in | Bits. |
Call graph
refuse
Print an error message on stderr and return a non-zero error.
Returns: integer(kind=I4P)
fortran
function refuse(message) result(error)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
message | character(len=*) | in | Message. |
Call graph
upper
Return a string left-adjusted, trimmed and in upper case (ASCII letters only).
Attributes: pure
Returns: character(len=:)
fortran
function upper(string) result(upper_string)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
string | character(len=*) | in | Input string. |
Call graph