| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| logical, | public | :: | save_now |
whether a manually inserted snapshot is saved |
|||
| integer, | public, | parameter | :: | version_number | = | 5 |
Version number of the .dat file output |
Compute number of elements in index range
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | ixOmin1 | |||
| integer, | intent(in) | :: | ixOmin2 | |||
| integer, | intent(in) | :: | ixOmin3 | |||
| integer, | intent(in) | :: | ixOmax1 | |||
| integer, | intent(in) | :: | ixOmax2 | |||
| integer, | intent(in) | :: | ixOmax3 |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | aux_variable_names | |||
| integer, | intent(in) | :: | nwc |
Determine the shape of a block for output (whether to include ghost cells, and on which sides)
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | igrid | |||
| integer, | intent(out) | :: | n_ghost(2*ndim) |
nghost(1:ndim) contains the number of ghost cells on the block's minimum boundaries, and nghost(ndim+1:2*ndim) on the block's maximum boundaries |
||
| integer, | intent(out) | :: | ixOmin1 |
Index range on output block |
||
| integer, | intent(out) | :: | ixOmin2 |
Index range on output block |
||
| integer, | intent(out) | :: | ixOmin3 |
Index range on output block |
||
| integer, | intent(out) | :: | ixOmax1 |
Index range on output block |
||
| integer, | intent(out) | :: | ixOmax2 |
Index range on output block |
||
| integer, | intent(out) | :: | ixOmax3 |
Index range on output block |
||
| integer, | intent(out) | :: | n_values |
Number of cells/values in output |
Standard method for creating a new output file
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(out) | :: | fh |
File handle |
||
| integer, | intent(in) | :: | ix |
Index of file |
||
| character(len=*), | intent(in) | :: | extension |
Extension of file |
||
| character(len=*), | intent(in), | optional | :: | suffix |
Optional suffix |
Write header for a snapshot, generalize cons_wnames and nw
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | fh |
File handle |
||
| integer(kind=MPI_OFFSET_KIND), | intent(in) | :: | offset_tree |
Offset of tree info |
||
| integer(kind=MPI_OFFSET_KIND), | intent(in) | :: | offset_block |
Offset of block data |
||
| character(len=*), | intent(in) | :: | dataset_names(:) | |||
| integer, | intent(in) | :: | nw_vars |