A utility to write XDMF files.
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| type(xdmf_attribute_obj), | public, | allocatable | :: | fields(:) |
Fields described by this XDMF file |
||
| integer, | public | :: | fields_count |
Number of fields |
|||
| character(len=:), | public, | allocatable | :: | filename |
XDMF file name |
||
| type(xdmf_grid_obj), | public | :: | grid |
XDMF grid |
Adds field information to the xdmf object.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(xdmf_obj), | intent(inout) | :: | this |
XDMF object |
||
| character(len=*), | intent(in) | :: | name |
Field name in the HDF5 dataset |
||
| character(len=*), | intent(in) | :: | type |
Type is 'Float' or 'Int" |
||
| character(len=*), | intent(in) | :: | precision |
8 or 4 depending on type and working precision |
||
| character(len=*), | intent(in) | :: | path |
Path to the HDF5 dataset |
Adds grid information to the xdmf object.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(xdmf_obj), | intent(inout) | :: | this |
XDMF object |
||
| character(len=*), | intent(in) | :: | name |
Grid name |
||
| integer, | intent(in) | :: | dims(3) |
Grid size |
||
| character(len=*), | intent(in) | :: | path |
Path to block_obj containing grid data |
||
| character(len=*), | intent(in) | :: | x1name |
Name of x1 axis in block_obj |
||
| character(len=*), | intent(in) | :: | x2name |
Name of x2 axis in block_obj |
||
| character(len=*), | intent(in) | :: | x3name |
Name of x3 axis in block_obj |
Finalizes object and frees memmory.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(xdmf_obj), | intent(inout) | :: | this |
XDMF object |
Initialize XDMF object.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(xdmf_obj), | intent(inout) | :: | this |
XDMF object |
Resizes the fields array in an xdmf object. Note that resizing occurs in increaments of size (RESIZE_INCREMENT). By default, RESIZE_INCREMENT=10, meaning that if resizing occurs, it will increase or reduce the array size by 10 slots. This is done to avoid frequent reallocating.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(xdmf_obj), | intent(inout) | :: | this |
XDMF object |
||
| integer, | intent(in) | :: | size_target |
Target new size |
Write the XDMF info to a file. This is a serial subroutine and should be called by only one rank.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(xdmf_obj), | intent(inout) | :: | this |
XDMF object |
||
| character(len=*), | intent(in) | :: | filename |
Name of file to write |