Skip to content

API Reference

Auto-generated from Fortran source doc comments using FORMAL.

src/lib

Key type-bound procedures

vtk_file / pvtk_file

ProcedureDescription
%initialize(format, filename, mesh_topology, ...)Open the file, select the writer, write the XML header
%finalize()Flush and close the file
%xml_writer%write_fielddata(...)Write global FieldData (time, cycle, etc.)
%xml_writer%write_piece(...)Open or close a Piece element
%xml_writer%write_geo(...)Write geometry (coordinates)
%xml_writer%write_connectivity(...)Write unstructured connectivity, offsets, and cell types
%xml_writer%write_dataarray(...)Write a data array (overloaded for all kinds and ranks)
%xml_writer%write_parallel_geo(...)Write a <P*> geometry piece reference (pvtk_file only)
%xml_writer%write_parallel_dataarray(...)Write a parallel data array descriptor (pvtk_file only)

vtm_file

ProcedureDescription
%initialize(filename)Create the .vtm wrapper file
%write_block(filenames, names, name)Add a named block referencing one or more partition files
%finalize()Close the .vtm file

write_xml_volatile

A module-level function (not a type-bound procedure) that returns the full XML output as an allocatable character string instead of writing to disk. Useful for parallel I/O workflows where the calling code controls file access.