module for XDMF file I/O More...
Data Types | |
type | fileio_xdmf |
Functions/Subroutines | |
subroutine | initfileio_xdmf (this, Mesh, Physics, Timedisc, Sources, config, IO) |
Constructor for the xdmf file I/O. More... | |
recursive subroutine | iteratedict (this, Mesh, config, offset, filename, path) |
Iterate the dictionary and run a Subroutine on every node. More... | |
subroutine | writekey_xdmf (this, offset, key, type, bytes, dims) |
Write the xdmf key. More... | |
subroutine | writenode_xdmf (this, Mesh, key, node, offset, filename) |
Write the xdmf node. More... | |
subroutine | writedataitem (this, dims, filename, offset) |
Writes description of data item in xml syntax. More... | |
subroutine | writeattribute (this, Mesh, name, dims, filename, offset, ref) |
Writes description of data item in xml syntax. More... | |
subroutine | writevector (this, Mesh, name, dims, ref1, ref2, ref3, step) |
Writes the mesh to file. More... | |
subroutine | writemeshxml (this, Mesh, filename, offset) |
Writes the mesh to file. More... | |
subroutine | writexmf (this, Mesh, IO) |
Main routine to write all data to xmf file. More... | |
character(len=128) function | getdimsstr (Mesh, dims) |
subroutine | finalize (this) |
Variables | |
character, parameter | lf = ACHAR(10) |
line feed More... | |
Detailed Description
module for XDMF file I/O
The xdmf file format 1 carries light data in a xml file and can store heavy data in binary or hdf5 files. This implementation stores heavy data in binary files (See fileio_binary.f90).
Function/Subroutine Documentation
◆ finalize()
|
private |
Definition at line 542 of file fileio_xdmf.f90.
◆ getdimsstr()
|
private |
Definition at line 499 of file fileio_xdmf.f90.
◆ initfileio_xdmf()
subroutine fileio_xdmf_mod::initfileio_xdmf | ( | class(fileio_xdmf), intent(inout) | this, |
class(mesh_base), intent(in) | Mesh, | ||
class(physics_base), intent(in) | Physics, | ||
class(timedisc_base), intent(in) | Timedisc, | ||
class(sources_base), intent(in), pointer | Sources, | ||
type(dict_typ), intent(in), pointer | config, | ||
type(dict_typ), intent(in), pointer | IO | ||
) |
Constructor for the xdmf file I/O.
Initilizes the file I/O type, filename, stoptime, number of outputs, number of files, unit number, config as a dict
- Parameters
-
[in,out] this [in,out] fileio class [in] mesh [in] Mesh class [in] physics [in] Physics class [in] timedisc [in] Timedisc class [in] sources [in] Sources class [in] io [in] IO Dictionary for I/O
Definition at line 84 of file fileio_xdmf.f90.
◆ iteratedict()
|
private |
Iterate the dictionary and run a Subroutine on every node.
- Parameters
-
[in,out] this [in,out] fileio class [in] mesh [in] mesh class [in] config [in] config dict [in] path [in] path [in,out] offset [in,out] offset
Definition at line 115 of file fileio_xdmf.f90.
◆ writeattribute()
|
private |
Writes description of data item in xml syntax.
- Parameters
-
[in,out] this [in,out] this fileio type [in] mesh [in] mesh mesh type [in] name [in] name [in] filename [in] filename [in] dims [in] dims [in] offset [in,out] offset [in] ref [in] ref
Definition at line 282 of file fileio_xdmf.f90.
◆ writedataitem()
|
private |
Writes description of data item in xml syntax.
- Parameters
-
[in,out] this [in,out] this fileio type [in] dims [in] dims [in] filename [in] filename [in] offset [in] offset
Definition at line 255 of file fileio_xdmf.f90.
◆ writekey_xdmf()
|
private |
Write the xdmf key.
- Attention
- There is also a WriteKey function in the parent class (binary) which should not be inherited
- Parameters
-
[in,out] this [in,out]
Definition at line 152 of file fileio_xdmf.f90.
◆ writemeshxml()
|
private |
Writes the mesh to file.
- Parameters
-
[in,out] this [in,out] this fileio type [in] mesh [in] mesh mesh type [in] filename [in] filename [in,out] offset [in,out] offset
Definition at line 381 of file fileio_xdmf.f90.
◆ writenode_xdmf()
|
private |
Write the xdmf node.
- Attention
- There is also a WriteNode function in the parent class (binary) which should not be inherited
- Parameters
-
[in,out] this [in,out] this fileio type [in] mesh [in] mesh mesh type [in] node [in] data node [in,out] offset [in,out] offset
Definition at line 181 of file fileio_xdmf.f90.
◆ writevector()
|
private |
Writes the mesh to file.
- Parameters
-
[in,out] this [in,out] this fileio type [in] mesh [in] mesh mesh type [in] name [in] name [in] dims [in] dims [in] ref3 [in] name [in] step [in]
Definition at line 339 of file fileio_xdmf.f90.
◆ writexmf()
|
private |
Main routine to write all data to xmf file.
- Parameters
-
[in,out] this [in,out] this fileio type [in] mesh [in] mesh mesh type [in] io [in] io I/O dictionary
Definition at line 417 of file fileio_xdmf.f90.
Variable Documentation
◆ lf
|
private |
line feed
Definition at line 53 of file fileio_xdmf.f90.