This module provides the MUSUBI subroutines needed for the restart functionality.
This module makes the restart IO functionality available for MUSUBI. When using the write functionality the workflow is as follows - open the file and write the 'normal header' - run over the chunks and + serialize the data + write them to file - close the file and write the 'last header' For reading the restart files the workflow is as follows: - open the file - read the solver specific character - loop over the chunks and + read the data from disc + unserialize the data and store it in the state vector - close the file
Further information on the treelm functions and the usage can be found in the tem_restart_module and inside the Restart Usage section itself.
Write the serialized buffer assembled in mus_serializeData to disk
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | levelPointer(:) |
global pdf info |
||
| type(tem_restart_type), | intent(inout) | :: | restart |
restart information |
||
| type(mus_scheme_type), | intent(inout) | :: | scheme |
array of schemes including the data to be serialized and dumped |
||
| type(treelmesh_type), | intent(in) | :: | tree |
mesh, provided in treelm format |
||
| type(tem_time_type), | intent(inout) | :: | timing |
current simulation time information |
||
| integer, | intent(in) | :: | timerHandle |
Timer handle |
||
| character(len=*), | intent(in), | optional | :: | suffix |
optional suffix (if present NO timestamp will be added!!!!) |
Read the serialized restart file into the state vectors
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | levelPointer(tree%nElems) |
Level pointer, from tree mesh to level descriptor |
||
| type(tem_restart_type), | intent(inout) | :: | restart |
restart information |
||
| type(mus_scheme_type), | intent(inout) | :: | scheme |
array of schemes including the data to be serialized and dumped |
||
| type(treelmesh_type), | intent(in) | :: | tree |
mesh, provided in treelm format |