Skip to content

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 without write_geo reuses 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 ​

Variables ​

NameTypeAttributesDescription
ROLEScharacter(len=*)parameterRoles of active arrays (VTK's names).
DEFLATE_LEVEL_ZLIBinteger(kind=I4P)parameterDeflate level of compressed datasets (the zlib default).
TOPOLOGY_IMAGEinteger(kind=I4P)parameterImageData.
TOPOLOGY_UNSTRUCTUREDinteger(kind=I4P)parameterUnstructuredGrid.
TOPOLOGY_POLYinteger(kind=I4P)parameterPolyData.
TOPOLOGY_RECTinteger(kind=I4P)parameterRectilinearGrid.
TOPOLOGY_STRGinteger(kind=I4P)parameterStructuredGrid.
TOPOLOGY_TABLEinteger(kind=I4P)parameterTable.
TOPOLOGY_AMRinteger(kind=I4P)parameterOverlappingAMR.
TOPOLOGY_HTGinteger(kind=I4P)parameterHyperTreeGrid.
CELL_POLYHEDRONinteger(kind=I1P)parameterVTK type of a polyhedron.
STEP_GROUPScharacter(len=*)parameterGroups of
BLOCKScharacter(len=*)parameterGroups of the PolyData cells.
VTK_COLUMNinteger(kind=I8P)parameterColumn of each block in the rows of Steps.
NAMES_SEPARATORcharacter(len=*)parameterSeparator of the names of a list (a name has no NUL).
ZERO_BLOCKinteger(kind=I8P)parameterZeros appended at once (polyhedra starting late, with comm).

Derived Types ​

active_array ​

Name of the active array of a role.

Components ​

NameTypeAttributesDescription
namecharacter(len=:)allocatableArray name.

vtkhdf_writer ​

VTKHDF writer (every topology of vtk_file).

Inheritance

Extends: vtk_writer_abstract

Components ​

NameTypeAttributesDescription
originreal(kind=R8P)Origin of ImageData topologies.
spacingreal(kind=R8P)Spacing of ImageData topologies.
directionreal(kind=R8P)Axes directions of ImageData topologies (row-major 3x3).
is_direction_setlogicalWrite the Direction of ImageData topologies.
is_uint64logicalUse UInt64 (instead of UInt32) bytes count headers.
is_compressedlogicalCompress (zlib) the binary data.
branch_factorinteger(kind=I4P)Branch factor of a HyperTreeGrid (VTKHDF): 2 or 3.
chunk_bytesinteger(kind=I8P)Bytes of a chunk of the VTKHDF datasets at most (default
file_idinteger(kind=hid_kind)File.
rootinteger(kind=hid_kind)Group /VTKHDF.
groupinteger(kind=hid_kind)Open data group (PointData, CellData, FieldData).
group_namecharacter(len=:)allocatableName of the open data group, empty if none.
whole_extentinteger(kind=I4P)Whole extent: nx1, nx2, ny1, ny2, nz1, nz2.
n_piecesinteger(kind=I4P)Pieces started (with comm, the partitions of all the ranks).
local_piecesinteger(kind=I4P)Pieces started by this process.
step_localinteger(kind=I4P)Pieces started by this process in the open step.
is_piece_openlogicalA piece is open.
version_minorinteger(kind=I8P)Minor version needed by the features written.
activetype(active_array)Active arrays of the open group, one per role.
topologyinteger(kind=I4P)Topology: one of the TOPOLOGY_* constants.
np_pieceinteger(kind=I8P)Points of the open piece (UnstructuredGrid, PolyData).
nc_pieceinteger(kind=I8P)Cells of the open piece (UnstructuredGrid, PolyData).
block_cellsinteger(kind=I8P)Cells of each block of the open piece (PolyData).
total_pointsinteger(kind=I8P)Points of the pieces started (UnstructuredGrid, PolyData).
total_cellsinteger(kind=I8P)Cells of the pieces started (UnstructuredGrid, PolyData).
is_geo_writtenlogicalThe points of the open piece are written.
is_connectivity_writtenlogicalThe cells of the open piece are written.
has_polyhedralogicalThe file has polyhedra (UnstructuredGrid).
is_faces_writtenlogicalThe faces of the polyhedra of the open piece are written.
is_temporallogicalThe file is a time series (write_step).
n_stepsinteger(kind=I8P)Steps started.
step_timereal(kind=R8P)Time of the open step.
step_piecesinteger(kind=I8P)Pieces of the open step.
step_startinteger(kind=I8P)Totals at the start of the open step: parts, points, cells,
step_blocksinteger(kind=I8P)PolyData totals at the start of the step: cells, ids per block.
totalsinteger(kind=I8P)Running totals, as step_start.
block_totalsinteger(kind=I8P)Running PolyData totals: cells of each block, then ids.
mesh_startinteger(kind=I8P)Entries of the last step with pieces (the mesh that a step
mesh_blocksinteger(kind=I8P)PolyData entries of that step, as step_blocks.
mesh_piecesinteger(kind=I8P)Parts of that step.
geo_slicesinteger(kind=I8P)Steps that wrote the geometry of a RectilinearGrid or
point_startinteger(kind=I8P)allocatableTuples (slices for a grid) of each point array at the start
point_previnteger(kind=I8P)allocatableOffset of each point array at the step before.
cell_startinteger(kind=I8P)allocatableAs point_start, for the cell arrays.
cell_previnteger(kind=I8P)allocatableAs point_prev, for the cell arrays.
field_arrayscharacter(len=:)allocatableNames of the field data arrays of a time series.
is_reopenedlogicalA time series reopened (reopen): the extent start unknown.
point_arrayscharacter(len=:)allocatableNames of the point data arrays, NUL terminated.
cell_arrayscharacter(len=:)allocatableNames of the cell data arrays, NUL terminated.
row_arrayscharacter(len=:)allocatableNames of the columns of a Table, NUL terminated.
table_rowsinteger(kind=I8P)Rows of the columns of the open step (-1: no column yet).
row_totalinteger(kind=I8P)Rows of the steps before the open one (a Table).
level_groupinteger(kind=hid_kind)Group of the open level of an OverlappingAMR.
levelinteger(kind=I4P)Open level (from 0), -1 if none.
n_levelsinteger(kind=I4P)Levels written.
level_spacingreal(kind=R8P)allocatableSpacing of each level, (3, n_levels).
level_countsinteger(kind=I8P)allocatableOf each level: boxes, points, cells written, and the same
has_domainlogicalA box of level 0 is written (in the open step).
domainreal(kind=R8P)Bounds of the boxes of level 0: x, y, z min and max.
tree_bitslogicalallocatableRefinement bits of the trees written (HyperTreeGrid).
tree_masklogicalallocatableMask bits of the cells of the trees written.
has_masklogicalA tree written has a mask.
tree_idsinteger(kind=I8P)allocatableTrees written.
tree_depthsinteger(kind=I8P)allocatableDepths of the trees written.
tree_countsinteger(kind=I8P)allocatableCells of each depth of each tree written.
tree_cellsinteger(kind=I8P)Cells of the trees written (the mask bits used).
n_tree_idsinteger(kind=I8P)Trees written (tree_ids, tree_depths used).
n_tree_countsinteger(kind=I8P)Entries of tree_counts used.
n_tree_bitsinteger(kind=I8P)Refinement bits used.
is_tree_datalogicalThe cell data of the trees are started.
tree_totalsinteger(kind=I8P)Of the steps before (HyperTreeGrid series): trees, depth
is_parallellogicalThe file is written by the ranks of an MPI communicator.
regioninteger(kind=I4P)Region of this rank of a grid written from ranks: its extent.
has_regionlogicalThe region is known (set by write_piece, not after a reopen).
rankinteger(kind=I4P)Rank of this process in comm.
regionsinteger(kind=I8P)allocatableRegions of all the ranks, regions(:, r) of rank r-1.
comminteger(kind=I4P)MPI communicator (Fortran handle), if is_parallel.

Type-Bound Procedures ​

NameAttributesDescription
write_connectivity
write_dataarray
write_fielddata
write_dataarray_unsigned
write_geo
write_piece
initializepass(self)
finalizepass(self)
write_piece_start_tagpass(self)
write_piece_end_tagpass(self)
write_steppass(self)
write_dataarray_location_tagpass(self)
write_levelpass(self)
write_treepass(self)
set_interfacepass(self)
write_fielddata_tagpass(self)
write_fielddata1_rank0pass(self)
write_fielddata1_rank1pass(self)
freepass(self)
set_component_namespass(self)
write_fielddata1_rank2pass(self)
write_dataarray_stringspass(self)
get_xml_volatilepass(self)
write_dataarray1_rank1_R8Ppass(self)
write_dataarray1_rank1_R4Ppass(self)
write_dataarray1_rank1_I8Ppass(self)
write_dataarray1_rank1_I4Ppass(self)
write_dataarray1_rank1_I2Ppass(self)
write_dataarray1_rank1_I1Ppass(self)
write_dataarray1_rank2_R8Ppass(self)
write_dataarray1_rank2_R4Ppass(self)
write_dataarray1_rank2_I8Ppass(self)
write_dataarray1_rank2_I4Ppass(self)
write_dataarray1_rank2_I2Ppass(self)
write_dataarray1_rank2_I1Ppass(self)
write_dataarray1_rank3_R8Ppass(self)
write_dataarray1_rank3_R4Ppass(self)
write_dataarray1_rank3_I8Ppass(self)
write_dataarray1_rank3_I4Ppass(self)
write_dataarray1_rank3_I2Ppass(self)
write_dataarray1_rank3_I1Ppass(self)
write_dataarray1_rank4_R8Ppass(self)
write_dataarray1_rank4_R4Ppass(self)
write_dataarray1_rank4_I8Ppass(self)
write_dataarray1_rank4_I4Ppass(self)
write_dataarray1_rank4_I2Ppass(self)
write_dataarray1_rank4_I1Ppass(self)
write_dataarray3_rank1_R8Ppass(self)
write_dataarray3_rank1_R4Ppass(self)
write_dataarray3_rank1_I8Ppass(self)
write_dataarray3_rank1_I4Ppass(self)
write_dataarray3_rank1_I2Ppass(self)
write_dataarray3_rank1_I1Ppass(self)
write_dataarray3_rank3_R8Ppass(self)
write_dataarray3_rank3_R4Ppass(self)
write_dataarray3_rank3_I8Ppass(self)
write_dataarray3_rank3_I4Ppass(self)
write_dataarray3_rank3_I2Ppass(self)
write_dataarray3_rank3_I1Ppass(self)
write_dataarray6_rank1_R8Ppass(self)
write_dataarray6_rank1_R4Ppass(self)
write_dataarray6_rank1_I8Ppass(self)
write_dataarray6_rank1_I4Ppass(self)
write_dataarray6_rank1_I2Ppass(self)
write_dataarray6_rank1_I1Ppass(self)
write_dataarray6_rank3_R8Ppass(self)
write_dataarray6_rank3_R4Ppass(self)
write_dataarray6_rank3_I8Ppass(self)
write_dataarray6_rank3_I4Ppass(self)
write_dataarray6_rank3_I2Ppass(self)
write_dataarray6_rank3_I1Ppass(self)
write_dataarray_unsigned_I8Ppass(self)
write_dataarray_unsigned_I4Ppass(self)
write_dataarray_unsigned_I2Ppass(self)
write_dataarray_unsigned_I1Ppass(self)
write_geo_unst_data1_rank2_R8Ppass(self)
write_geo_unst_data3_rank1_R8Ppass(self)
write_geo_unst_data1_rank2_R8P_I8Ppass(self)
write_geo_unst_data3_rank1_R8P_I8Ppass(self)
write_geo_unst_data1_rank2_R4Ppass(self)
write_geo_unst_data3_rank1_R4Ppass(self)
write_geo_unst_data1_rank2_R4P_I8Ppass(self)
write_geo_unst_data3_rank1_R4P_I8Ppass(self)
write_connectivity_I4Ppass(self)
write_connectivity_I8Ppass(self)
write_piece_start_tag_unstpass(self)
write_piece_start_tag_unst_I8Ppass(self)
write_piece_start_tag_polypass(self)
write_piece_start_tag_poly_I8Ppass(self)
write_polydata_cellspass(self)
write_geo_rect_data3_rank1_R8Ppass(self)
write_geo_strg_data1_rank2_R8Ppass(self)
write_geo_strg_data1_rank4_R8Ppass(self)
write_geo_strg_data3_rank1_R8Ppass(self)
write_geo_strg_data3_rank3_R8Ppass(self)
write_geo_rect_data3_rank1_R4Ppass(self)
write_geo_strg_data1_rank2_R4Ppass(self)
write_geo_strg_data1_rank4_R4Ppass(self)
write_geo_strg_data3_rank1_R4Ppass(self)
write_geo_strg_data3_rank3_R4Ppass(self)
reopenpass(self)Reopen a time series to append steps (action='append').
reopen_filepass(self)Read the state of a time series reopened, trim its datasets.
set_commpass(self)Write the file from the ranks of an MPI communicator.
check_arrayspass(self)Check the tuples written in the open step by each array.
check_cellspass(self)Check a write_connectivity call of an UnstructuredGrid piece.
check_geopass(self)Check a write_geo call of an UnstructuredGrid or PolyData piece.
close_grouppass(self)Close the open data group.
dataset_dimspass(self)Shape of the dataset of a data array.
deflate_levelpass(self)Deflate level of the datasets.
check_grid_geopass(self)Check a write_geo call of a RectilinearGrid or StructuredGrid.
end_partitionpass(self)End a piece of an UnstructuredGrid or PolyData: check it.
grid_pointspass(self)Points of the grid along each axis (whole extent).
is_partitionedpass(self)The pieces are partitions (UnstructuredGrid, PolyData).
mark_activepass(self)Mark a dataset as active array.
open_grouppass(self)Open (or create) a data group.
no_facespass(self)Write the zero entries of a piece without polyhedra.
add_face_totalspass(self)Add the faces of a piece to the totals (with comm, of the ranks).
poly_blockpass(self)Check or write a block of cells of a PolyData piece.
poly_blockspass(self)Check or write the four blocks of cells of a PolyData piece.
end_reusingpass(self)Check the arrays of a step without pieces, write its entries.
end_tablepass(self)End the columns of a Table (static, or a step).
end_boxpass(self)End a box of an OverlappingAMR: check its arrays.
is_table_completepass(self)A Table has the NumberOfRows entry of every step.
end_treespass(self)End the piece of a HyperTreeGrid: write its trees.
is_recordedpass(self)A data array name is recorded (point or cell data).
open_levelpass(self)Open (or create) a level of an OverlappingAMR.
start_boxpass(self)Start a box of an OverlappingAMR (write_piece of the level).
is_reusingpass(self)The open step has no piece: it reuses the mesh of the step before.
is_written_in_steppass(self)A point or cell array is written in the open step.
record_arraypass(self)Record the name of a point or cell data array.
agreepass(self)With comm, the largest error of the ranks.
agree_namepass(self)With comm, refuse an array that is not the same on every rank.
axis_runspass(self)The coordinates of an axis that this rank writes (RectilinearGrid).
points_blockpass(self)The block of the points of a StructuredGrid that this rank writes.
region_blockpass(self)The block of a grid array that this rank writes.
start_regionpass(self)Start the region of this rank of a grid written from ranks.
roll_arrayspass(self)Start the bookkeeping of the arrays for a new step.
resetpass(self)Reset the state of the writer.
start_partitionpass(self)Start a piece of an UnstructuredGrid or PolyData.
start_polyhedrapass(self)Start the polyhedra of the file: zero entries for the earlier pieces.
step_entrypass(self)Write the entry of the open step of a dataset of Steps.
write_stepspass(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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inout
errorinteger(kind=I4P)outoptional

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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)in
xml_volatilecharacter(len=:)outallocatable
errorinteger(kind=I4P)outoptional

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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
data_namecharacter(len=*)inData 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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inWriter.
cellslogicalinCell data, otherwise point data.
n_componentsinteger(kind=I4P)inComponents.
dimsinteger(kind=I8P)outallocatableShape of the dataset.
mem_dimsinteger(kind=I8P)outallocatableShape of the values of the region.
mem_startinteger(kind=I8P)outallocatableStart of the block in the values.
file_startinteger(kind=I8P)outallocatableStart of the block in the dataset.
countinteger(kind=I8P)outallocatableShape 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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inWriter.
ainteger(kind=I4P)inAxis.
runsinteger(kind=I8P)outallocatableRuns.

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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inWriter.
mem_dimsinteger(kind=I8P)outShape of the points of the region.
file_startinteger(kind=I8P)outStart of the block in the dataset.
countinteger(kind=I8P)outShape 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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
comminteger(kind=I4P)inMPI communicator (Fortran handle).

Call graph

reset ​

Reset the state of the writer, but the HDF5 identifiers.

Attributes: elemental

fortran
subroutine reset(self)

Arguments

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.

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

NameTypeIntentAttributesDescription
valuesinteger(kind=I8P)inoutallocatableValues, the first n used.
ninteger(kind=I8P)inoutEntries used.
moreinteger(kind=I8P)inValues 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

NameTypeIntentAttributesDescription
valueslogicalinoutallocatableBits, the first n used.
ninteger(kind=I8P)inoutBits used.
morelogicalinoptionalBits appended.
n_moreinteger(kind=I8P)inBits 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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
formatcharacter(len=*)inFile format: VTKHDF.
filenamecharacter(len=*)inFile name.
mesh_topologycharacter(len=*)inMesh topology.
nx1integer(kind=I4P)inoptionalInitial node of x axis.
nx2integer(kind=I4P)inoptionalFinal node of x axis.
ny1integer(kind=I4P)inoptionalInitial node of y axis.
ny2integer(kind=I4P)inoptionalFinal node of y axis.
nz1integer(kind=I4P)inoptionalInitial node of z axis.
nz2integer(kind=I4P)inoptionalFinal node of z axis.
is_volatilelogicalinoptionalFlag to check volatile writer.
mesh_kindcharacter(len=*)inoptionalKind 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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.

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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inout
nx1integer(kind=I4P)in
nx2integer(kind=I4P)in
ny1integer(kind=I4P)in
ny2integer(kind=I4P)in
nz1integer(kind=I4P)in
nz2integer(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

NameTypeIntentAttributesDescription
selfclass(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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inout
timereal(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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inout
locationcharacter(len=*)in
actioncharacter(len=*)in
scalarscharacter(len=*)inoptional
vectorscharacter(len=*)inoptional
normalscharacter(len=*)inoptional
tensorscharacter(len=*)inoptional
tcoordscharacter(len=*)inoptional
global_idscharacter(len=*)inoptional
pedigree_idscharacter(len=*)inoptional
edge_flagscharacter(len=*)inoptional
tangentscharacter(len=*)inoptional
rational_weightscharacter(len=*)inoptional
higher_order_degreescharacter(len=*)inoptional
process_idscharacter(len=*)inoptional

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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inout
levelinteger(kind=I4P)in
spacingreal(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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inout
tree_idinteger(kind=I4P)in
descriptorlogicalin
masklogicalinoptional

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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inout
normalscharacter(len=*)in
interceptscharacter(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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inout
actioncharacter(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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inout
data_namecharacter(len=*)in
xclass(*)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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inout
data_namecharacter(len=*)in
xclass(*)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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inout
namescharacter(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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inout
data_namecharacter(len=*)in
xclass(*)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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inout
data_namecharacter(len=*)in
xcharacter(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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
data_namecharacter(len=*)inData name.
xreal(kind=R8P)inData variable.
is_tupleslogicalinoptionalUse "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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
data_namecharacter(len=*)inData name.
xreal(kind=R4P)inData variable.
is_tupleslogicalinoptionalUse "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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
data_namecharacter(len=*)inData name.
xinteger(kind=I8P)inData variable.
is_tupleslogicalinoptionalUse "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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
data_namecharacter(len=*)inData name.
xinteger(kind=I4P)inData variable.
is_tupleslogicalinoptionalUse "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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
data_namecharacter(len=*)inData name.
xinteger(kind=I2P)inData variable.
is_tupleslogicalinoptionalUse "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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
data_namecharacter(len=*)inData name.
xinteger(kind=I1P)inData variable.
is_tupleslogicalinoptionalUse "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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
data_namecharacter(len=*)inData name.
xreal(kind=R8P)inData variable.
one_componentlogicalinoptionalForce one component.
is_tupleslogicalinoptionalUse "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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
data_namecharacter(len=*)inData name.
xreal(kind=R4P)inData variable.
one_componentlogicalinoptionalForce one component.
is_tupleslogicalinoptionalUse "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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
data_namecharacter(len=*)inData name.
xinteger(kind=I8P)inData variable.
one_componentlogicalinoptionalForce one component.
is_tupleslogicalinoptionalUse "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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
data_namecharacter(len=*)inData name.
xinteger(kind=I4P)inData variable.
one_componentlogicalinoptionalForce one component.
is_tupleslogicalinoptionalUse "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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
data_namecharacter(len=*)inData name.
xinteger(kind=I2P)inData variable.
one_componentlogicalinoptionalForce one component.
is_tupleslogicalinoptionalUse "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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
data_namecharacter(len=*)inData name.
xinteger(kind=I1P)inData variable.
one_componentlogicalinoptionalForce one component.
is_tupleslogicalinoptionalUse "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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
data_namecharacter(len=*)inData name.
xreal(kind=R8P)inData variable.
one_componentlogicalinoptionalForce one component.
is_tupleslogicalinoptionalUse "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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
data_namecharacter(len=*)inData name.
xreal(kind=R4P)inData variable.
one_componentlogicalinoptionalForce one component.
is_tupleslogicalinoptionalUse "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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
data_namecharacter(len=*)inData name.
xinteger(kind=I8P)inData variable.
one_componentlogicalinoptionalForce one component.
is_tupleslogicalinoptionalUse "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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
data_namecharacter(len=*)inData name.
xinteger(kind=I4P)inData variable.
one_componentlogicalinoptionalForce one component.
is_tupleslogicalinoptionalUse "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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
data_namecharacter(len=*)inData name.
xinteger(kind=I2P)inData variable.
one_componentlogicalinoptionalForce one component.
is_tupleslogicalinoptionalUse "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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
data_namecharacter(len=*)inData name.
xinteger(kind=I1P)inData variable.
one_componentlogicalinoptionalForce one component.
is_tupleslogicalinoptionalUse "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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
data_namecharacter(len=*)inData name.
xreal(kind=R8P)inData variable.
one_componentlogicalinoptionalForce one component.
is_tupleslogicalinoptionalUse "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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
data_namecharacter(len=*)inData name.
xreal(kind=R4P)inData variable.
one_componentlogicalinoptionalForce one component.
is_tupleslogicalinoptionalUse "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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
data_namecharacter(len=*)inData name.
xinteger(kind=I8P)inData variable.
one_componentlogicalinoptionalForce one component.
is_tupleslogicalinoptionalUse "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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
data_namecharacter(len=*)inData name.
xinteger(kind=I4P)inData variable.
one_componentlogicalinoptionalForce one component.
is_tupleslogicalinoptionalUse "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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
data_namecharacter(len=*)inData name.
xinteger(kind=I2P)inData variable.
one_componentlogicalinoptionalForce one component.
is_tupleslogicalinoptionalUse "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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
data_namecharacter(len=*)inData name.
xinteger(kind=I1P)inData variable.
one_componentlogicalinoptionalForce one component.
is_tupleslogicalinoptionalUse "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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
data_namecharacter(len=*)inData name.
xreal(kind=R8P)inX component of data variable.
yreal(kind=R8P)inY component of data variable.
zreal(kind=R8P)inZ component of data variable.
is_tupleslogicalinoptionalUse "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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
data_namecharacter(len=*)inData name.
xreal(kind=R4P)inX component of data variable.
yreal(kind=R4P)inY component of data variable.
zreal(kind=R4P)inZ component of data variable.
is_tupleslogicalinoptionalUse "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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
data_namecharacter(len=*)inData name.
xinteger(kind=I8P)inX component of data variable.
yinteger(kind=I8P)inY component of data variable.
zinteger(kind=I8P)inZ component of data variable.
is_tupleslogicalinoptionalUse "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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
data_namecharacter(len=*)inData name.
xinteger(kind=I4P)inX component of data variable.
yinteger(kind=I4P)inY component of data variable.
zinteger(kind=I4P)inZ component of data variable.
is_tupleslogicalinoptionalUse "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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
data_namecharacter(len=*)inData name.
xinteger(kind=I2P)inX component of data variable.
yinteger(kind=I2P)inY component of data variable.
zinteger(kind=I2P)inZ component of data variable.
is_tupleslogicalinoptionalUse "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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
data_namecharacter(len=*)inData name.
xinteger(kind=I1P)inX component of data variable.
yinteger(kind=I1P)inY component of data variable.
zinteger(kind=I1P)inZ component of data variable.
is_tupleslogicalinoptionalUse "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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
data_namecharacter(len=*)inData name.
xreal(kind=R8P)inX component of data variable.
yreal(kind=R8P)inY component of data variable.
zreal(kind=R8P)inZ component of data variable.
is_tupleslogicalinoptionalUse "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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
data_namecharacter(len=*)inData name.
xreal(kind=R4P)inX component of data variable.
yreal(kind=R4P)inY component of data variable.
zreal(kind=R4P)inZ component of data variable.
is_tupleslogicalinoptionalUse "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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
data_namecharacter(len=*)inData name.
xinteger(kind=I8P)inX component of data variable.
yinteger(kind=I8P)inY component of data variable.
zinteger(kind=I8P)inZ component of data variable.
is_tupleslogicalinoptionalUse "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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
data_namecharacter(len=*)inData name.
xinteger(kind=I4P)inX component of data variable.
yinteger(kind=I4P)inY component of data variable.
zinteger(kind=I4P)inZ component of data variable.
is_tupleslogicalinoptionalUse "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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
data_namecharacter(len=*)inData name.
xinteger(kind=I2P)inX component of data variable.
yinteger(kind=I2P)inY component of data variable.
zinteger(kind=I2P)inZ component of data variable.
is_tupleslogicalinoptionalUse "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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
data_namecharacter(len=*)inData name.
xinteger(kind=I1P)inX component of data variable.
yinteger(kind=I1P)inY component of data variable.
zinteger(kind=I1P)inZ component of data variable.
is_tupleslogicalinoptionalUse "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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
data_namecharacter(len=*)inData name.
ureal(kind=R8P)inU component of data variable.
vreal(kind=R8P)inV component of data variable.
wreal(kind=R8P)inW component of data variable.
xreal(kind=R8P)inX component of data variable.
yreal(kind=R8P)inY component of data variable.
zreal(kind=R8P)inZ component of data variable.
is_tupleslogicalinoptionalUse "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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
data_namecharacter(len=*)inData name.
ureal(kind=R4P)inU component of data variable.
vreal(kind=R4P)inV component of data variable.
wreal(kind=R4P)inW component of data variable.
xreal(kind=R4P)inX component of data variable.
yreal(kind=R4P)inY component of data variable.
zreal(kind=R4P)inZ component of data variable.
is_tupleslogicalinoptionalUse "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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
data_namecharacter(len=*)inData name.
uinteger(kind=I8P)inU component of data variable.
vinteger(kind=I8P)inV component of data variable.
winteger(kind=I8P)inW component of data variable.
xinteger(kind=I8P)inX component of data variable.
yinteger(kind=I8P)inY component of data variable.
zinteger(kind=I8P)inZ component of data variable.
is_tupleslogicalinoptionalUse "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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
data_namecharacter(len=*)inData name.
uinteger(kind=I4P)inU component of data variable.
vinteger(kind=I4P)inV component of data variable.
winteger(kind=I4P)inW component of data variable.
xinteger(kind=I4P)inX component of data variable.
yinteger(kind=I4P)inY component of data variable.
zinteger(kind=I4P)inZ component of data variable.
is_tupleslogicalinoptionalUse "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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
data_namecharacter(len=*)inData name.
uinteger(kind=I2P)inU component of data variable.
vinteger(kind=I2P)inV component of data variable.
winteger(kind=I2P)inW component of data variable.
xinteger(kind=I2P)inX component of data variable.
yinteger(kind=I2P)inY component of data variable.
zinteger(kind=I2P)inZ component of data variable.
is_tupleslogicalinoptionalUse "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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
data_namecharacter(len=*)inData name.
uinteger(kind=I1P)inU component of data variable.
vinteger(kind=I1P)inV component of data variable.
winteger(kind=I1P)inW component of data variable.
xinteger(kind=I1P)inX component of data variable.
yinteger(kind=I1P)inY component of data variable.
zinteger(kind=I1P)inZ component of data variable.
is_tupleslogicalinoptionalUse "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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
data_namecharacter(len=*)inData name.
ureal(kind=R8P)inU component of data variable.
vreal(kind=R8P)inV component of data variable.
wreal(kind=R8P)inW component of data variable.
xreal(kind=R8P)inX component of data variable.
yreal(kind=R8P)inY component of data variable.
zreal(kind=R8P)inZ component of data variable.
is_tupleslogicalinoptionalUse "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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
data_namecharacter(len=*)inData name.
ureal(kind=R4P)inU component of data variable.
vreal(kind=R4P)inV component of data variable.
wreal(kind=R4P)inW component of data variable.
xreal(kind=R4P)inX component of data variable.
yreal(kind=R4P)inY component of data variable.
zreal(kind=R4P)inZ component of data variable.
is_tupleslogicalinoptionalUse "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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
data_namecharacter(len=*)inData name.
uinteger(kind=I8P)inU component of data variable.
vinteger(kind=I8P)inV component of data variable.
winteger(kind=I8P)inW component of data variable.
xinteger(kind=I8P)inX component of data variable.
yinteger(kind=I8P)inY component of data variable.
zinteger(kind=I8P)inZ component of data variable.
is_tupleslogicalinoptionalUse "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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
data_namecharacter(len=*)inData name.
uinteger(kind=I4P)inU component of data variable.
vinteger(kind=I4P)inV component of data variable.
winteger(kind=I4P)inW component of data variable.
xinteger(kind=I4P)inX component of data variable.
yinteger(kind=I4P)inY component of data variable.
zinteger(kind=I4P)inZ component of data variable.
is_tupleslogicalinoptionalUse "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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
data_namecharacter(len=*)inData name.
uinteger(kind=I2P)inU component of data variable.
vinteger(kind=I2P)inV component of data variable.
winteger(kind=I2P)inW component of data variable.
xinteger(kind=I2P)inX component of data variable.
yinteger(kind=I2P)inY component of data variable.
zinteger(kind=I2P)inZ component of data variable.
is_tupleslogicalinoptionalUse "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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
data_namecharacter(len=*)inData name.
uinteger(kind=I1P)inU component of data variable.
vinteger(kind=I1P)inV component of data variable.
winteger(kind=I1P)inW component of data variable.
xinteger(kind=I1P)inX component of data variable.
yinteger(kind=I1P)inY component of data variable.
zinteger(kind=I1P)inZ component of data variable.
is_tupleslogicalinoptionalUse "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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inout
data_namecharacter(len=*)in
xinteger(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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inout
data_namecharacter(len=*)in
xinteger(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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inout
data_namecharacter(len=*)in
xinteger(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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inout
data_namecharacter(len=*)in
xinteger(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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inout
npinteger(kind=I4P)in
ncinteger(kind=I4P)in
xyzreal(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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inout
npinteger(kind=I4P)in
ncinteger(kind=I4P)in
xreal(kind=R8P)in
yreal(kind=R8P)in
zreal(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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inout
npinteger(kind=I8P)in
ncinteger(kind=I8P)in
xyzreal(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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inout
npinteger(kind=I8P)in
ncinteger(kind=I8P)in
xreal(kind=R8P)in
yreal(kind=R8P)in
zreal(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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inout
npinteger(kind=I4P)in
ncinteger(kind=I4P)in
xyzreal(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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inout
npinteger(kind=I4P)in
ncinteger(kind=I4P)in
xreal(kind=R4P)in
yreal(kind=R4P)in
zreal(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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inout
npinteger(kind=I8P)in
ncinteger(kind=I8P)in
xyzreal(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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inout
npinteger(kind=I8P)in
ncinteger(kind=I8P)in
xreal(kind=R4P)in
yreal(kind=R4P)in
zreal(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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inout
ncinteger(kind=I4P)in
connectivityinteger(kind=I4P)in
offsetinteger(kind=I4P)in
cell_typeinteger(kind=I1P)in
faceinteger(kind=I4P)inoptional
faceoffsetinteger(kind=I4P)inoptional

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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inout
ncinteger(kind=I8P)in
connectivityinteger(kind=I8P)in
offsetinteger(kind=I8P)in
cell_typeinteger(kind=I1P)in
faceinteger(kind=I8P)inoptional
faceoffsetinteger(kind=I8P)inoptional

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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inout
npinteger(kind=I4P)in
ncinteger(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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inout
npinteger(kind=I8P)in
ncinteger(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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inout
npinteger(kind=I4P)in
nvertsinteger(kind=I4P)in
nlinesinteger(kind=I4P)in
nstripsinteger(kind=I4P)in
npolysinteger(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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inout
npinteger(kind=I8P)in
nvertsinteger(kind=I8P)in
nlinesinteger(kind=I8P)in
nstripsinteger(kind=I8P)in
npolysinteger(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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inout
verts_connectivityclass(*)inoptional
verts_offsetclass(*)inoptional
lines_connectivityclass(*)inoptional
lines_offsetclass(*)inoptional
strips_connectivityclass(*)inoptional
strips_offsetclass(*)inoptional
polys_connectivityclass(*)inoptional
polys_offsetclass(*)inoptional

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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inout
xreal(kind=R8P)in
yreal(kind=R8P)in
zreal(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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inout
xyzreal(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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inout
xyzreal(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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inout
ninteger(kind=I4P)in
xreal(kind=R8P)in
yreal(kind=R8P)in
zreal(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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inout
ninteger(kind=I4P)in
xreal(kind=R8P)in
yreal(kind=R8P)in
zreal(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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inout
xreal(kind=R4P)in
yreal(kind=R4P)in
zreal(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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inout
xyzreal(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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inout
xyzreal(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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inout
ninteger(kind=I4P)in
xreal(kind=R4P)in
yreal(kind=R4P)in
zreal(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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inout
ninteger(kind=I4P)in
xreal(kind=R4P)in
yreal(kind=R4P)in
zreal(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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
data_namecharacter(len=*)inData name.
xreal(kind=R8P)inValues.
ninteger(kind=I8P)inNumber of values.
n_componentsinteger(kind=I4P)inNumber 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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
data_namecharacter(len=*)inData name.
xreal(kind=R4P)inValues.
ninteger(kind=I8P)inNumber of values.
n_componentsinteger(kind=I4P)inNumber 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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
data_namecharacter(len=*)inData name.
xinteger(kind=I8P)inValues.
ninteger(kind=I8P)inNumber of values.
n_componentsinteger(kind=I4P)inNumber of components.
unsignedlogicalinoptionalUnsigned 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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
data_namecharacter(len=*)inData name.
xinteger(kind=I4P)inValues.
ninteger(kind=I8P)inNumber of values.
n_componentsinteger(kind=I4P)inNumber of components.
unsignedlogicalinoptionalUnsigned 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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
data_namecharacter(len=*)inData name.
xinteger(kind=I2P)inValues.
ninteger(kind=I8P)inNumber of values.
n_componentsinteger(kind=I4P)inNumber of components.
unsignedlogicalinoptionalUnsigned 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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
data_namecharacter(len=*)inData name.
xinteger(kind=I1P)inValues.
ninteger(kind=I8P)inNumber of values.
n_componentsinteger(kind=I4P)inNumber of components.
unsignedlogicalinoptionalUnsigned 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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inWriter.
loc_idinteger(kind=hid_kind)inParent group.
namecharacter(len=*)inDataset name.
xreal(kind=R8P)inValues.
dimsinteger(kind=I8P)inShape 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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inWriter.
loc_idinteger(kind=hid_kind)inParent group.
namecharacter(len=*)inDataset name.
xreal(kind=R4P)inValues.
dimsinteger(kind=I8P)inShape 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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inWriter.
loc_idinteger(kind=hid_kind)inParent group.
namecharacter(len=*)inDataset name.
xinteger(kind=I8P)inValues.
dimsinteger(kind=I8P)inShape of the values, Fortran order (the last dimension grows).
unsignedlogicalinoptionalUnsigned 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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inWriter.
loc_idinteger(kind=hid_kind)inParent group.
namecharacter(len=*)inDataset name.
xinteger(kind=I4P)inValues.
dimsinteger(kind=I8P)inShape of the values, Fortran order (the last dimension grows).
unsignedlogicalinoptionalUnsigned 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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inWriter.
loc_idinteger(kind=hid_kind)inParent group.
namecharacter(len=*)inDataset name.
xinteger(kind=I2P)inValues.
dimsinteger(kind=I8P)inShape of the values, Fortran order (the last dimension grows).
unsignedlogicalinoptionalUnsigned 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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inWriter.
loc_idinteger(kind=hid_kind)inParent group.
namecharacter(len=*)inDataset name.
xinteger(kind=I1P)inValues.
dimsinteger(kind=I8P)inShape of the values, Fortran order (the last dimension grows).
unsignedlogicalinoptionalUnsigned 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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
npinteger(kind=I8P)inNumber of points.
ncinteger(kind=I8P)inNumber of cells.
xyzreal(kind=R8P)inCoordinates, interleaved (x, y, z of each point).
n1integer(kind=I8P)inFirst dimension of the coordinates (3).
n2integer(kind=I8P)inSecond 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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
npinteger(kind=I8P)inNumber of points.
ncinteger(kind=I8P)inNumber of cells.
xyzreal(kind=R4P)inCoordinates, interleaved (x, y, z of each point).
n1integer(kind=I8P)inFirst dimension of the coordinates (3).
n2integer(kind=I8P)inSecond 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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
ncinteger(kind=I8P)inNumber of cells.
connectivityinteger(kind=I4P)inPoint ids of the cells, from 0 in the piece.
offsetinteger(kind=I4P)inEnd offset of each cell in the connectivity.
cell_typeinteger(kind=I1P)inVTK 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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
ncinteger(kind=I8P)inNumber of cells.
connectivityinteger(kind=I8P)inPoint ids of the cells, from 0 in the piece.
offsetinteger(kind=I8P)inEnd offset of each cell in the connectivity.
cell_typeinteger(kind=I1P)inVTK 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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
xreal(kind=R8P)inX coordinates.
yreal(kind=R8P)inY coordinates.
zreal(kind=R8P)inZ 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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inWriter.
namecharacter(len=*)inDataset of the coordinates.
ainteger(kind=I4P)inAxis: 1 x, 2 y, 3 z.
valuesreal(kind=R8P)inCoordinates 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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
xyzreal(kind=R8P)inCoordinates, interleaved (x, y, z of each point), x fastest.
n1integer(kind=I8P)inFirst dimension of the coordinates (3).
ninteger(kind=I8P)inNumber 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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
xreal(kind=R4P)inX coordinates.
yreal(kind=R4P)inY coordinates.
zreal(kind=R4P)inZ 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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inWriter.
namecharacter(len=*)inDataset of the coordinates.
ainteger(kind=I4P)inAxis: 1 x, 2 y, 3 z.
valuesreal(kind=R4P)inCoordinates 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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
xyzreal(kind=R4P)inCoordinates, interleaved (x, y, z of each point), x fastest.
n1integer(kind=I8P)inFirst dimension of the coordinates (3).
ninteger(kind=I8P)inNumber 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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
ncinteger(kind=I8P)inNumber of cells.
faceinteger(kind=I4P)inFaces of each polyhedron with their points (VTKFortran stream).
faceoffsetinteger(kind=I4P)inEnd of the faces of each cell in face, -1 if not a polyhedron.
cell_typeinteger(kind=I1P)inVTK cell types.
check_onlylogicalinCheck 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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
ncinteger(kind=I8P)inNumber of cells.
faceinteger(kind=I8P)inFaces of each polyhedron with their points (VTKFortran stream).
faceoffsetinteger(kind=I8P)inEnd of the faces of each cell in face, -1 if not a polyhedron.
cell_typeinteger(kind=I1P)inVTK cell types.
check_onlylogicalinCheck 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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
binteger(kind=I4P)inBlock: 1 vertices, 2 lines, 3 strips, 4 polygons.
check_onlylogicalinCheck the block, write nothing.
connectivityinteger(kind=I4P)inPoint ids of the cells, from 0 in the piece.
offsetinteger(kind=I4P)inEnd 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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
binteger(kind=I4P)inBlock: 1 vertices, 2 lines, 3 strips, 4 polygons.
check_onlylogicalinCheck the block, write nothing.
connectivityinteger(kind=I8P)inPoint ids of the cells, from 0 in the piece.
offsetinteger(kind=I8P)inEnd 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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inWriter.
ncinteger(kind=I8P)inNumber of cells.
n_offsetinteger(kind=I8P)inSize of the offsets.
n_typesinteger(kind=I8P)inSize 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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inWriter.
npinteger(kind=I8P)inNumber of points.
ncinteger(kind=I8P)inNumber of cells.
n1integer(kind=I8P)inFirst dimension of the coordinates.
n2integer(kind=I8P)inSecond 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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inWriter.
topologyinteger(kind=I4P)inTopology 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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.

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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inWriter.
data_namecharacter(len=*)inData name (for the messages).
ninteger(kind=I8P)inNumber of values.
n_componentsinteger(kind=I4P)inNumber of components.
dimsinteger(kind=I8P)outallocatableShape 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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.

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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inWriter.

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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inWriter.

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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inWriter.

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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
data_namecharacter(len=*)inData 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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
namecharacter(len=*)inGroup 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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
n_face_idsinteger(kind=I8P)inPoint ids of the faces of the piece.
n_facesinteger(kind=I8P)inFaces 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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
ncinteger(kind=I8P)inCells 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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
binteger(kind=I4P)inBlock: 1 vertices, 2 lines, 3 strips, 4 polygons.
check_onlylogicalinCheck the block, write nothing.
connectivityclass(*)inoptionalPoint ids of the cells, from 0 in the piece.
offsetclass(*)inoptionalEnd 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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
check_onlylogicalinCheck the blocks, write nothing.
verts_connectivityclass(*)inoptionalVertices connectivity.
verts_offsetclass(*)inoptionalVertices offsets.
lines_connectivityclass(*)inoptionalLines connectivity.
lines_offsetclass(*)inoptionalLines offsets.
strips_connectivityclass(*)inoptionalTriangle strips connectivity.
strips_offsetclass(*)inoptionalTriangle strips offsets.
polys_connectivityclass(*)inoptionalPolygons connectivity.
polys_offsetclass(*)inoptionalPolygons 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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
data_namecharacter(len=*)inData name.
xcharacter(len=*)inStrings.

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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inWriter.
groupcharacter(len=*)inPointData or CellData.
rowsinteger(kind=I8P)inTuples (slices) written in the open step by an array written in it.
may_reuselogicalinAn 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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inWriter.

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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
extentinteger(kind=I4P)inRegion 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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inWriter.
data_namecharacter(len=*)inName 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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inWriter.
errorinteger(kind=I4P)inError 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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.

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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
levelinteger(kind=I4P)inLevel, from 0.
spacingreal(kind=R8P)inSpacing 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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
extentinteger(kind=I4P)inPoint 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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.

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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.

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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inWriter.

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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inWriter.
data_namecharacter(len=*)inData 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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.

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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inWriter.

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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.

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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
filenamecharacter(len=*)inFile 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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
filenamecharacter(len=*)inFile 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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
npinteger(kind=I8P)inNumber of points.
ncinteger(kind=I8P)inNumber of cells.
block_cellsinteger(kind=I8P)inoptionalCells 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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.

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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.
namecharacter(len=*)inDataset name in Steps.
valuesinteger(kind=I8P)inValues 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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inoutWriter.

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

NameTypeIntentAttributesDescription
selfclass(vtkhdf_writer)inWriter.
zerosinteger(kind=I8P)inZeros (a block, on rank 0).
rowsinteger(kind=I8P)in1 on rank 0, 0 on the others.
namecharacter(len=*)inDataset.
countinteger(kind=I8P)inZeros 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

NameTypeIntentAttributesDescription
rootinteger(kind=hid_kind)inGroup /VTKHDF.
groupcharacter(len=*)inGroup of the arrays.
namescharacter(len=*)inNames, each followed by NAMES_SEPARATOR.
tuplesinteger(kind=I8P)outallocatableTuples 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

NameTypeIntentAttributesDescription
bitslogicalinBits.

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

NameTypeIntentAttributesDescription
messagecharacter(len=*)inMessage.

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

NameTypeIntentAttributesDescription
stringcharacter(len=*)inInput string.

Call graph