mus_restart_module Module

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.



Subroutines

public subroutine mus_writeRestart(levelPointer, restart, scheme, tree, timing, timerHandle, suffix)

Write the serialized buffer assembled in mus_serializeData to disk

Arguments

Type IntentOptional 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!!!!)

public subroutine mus_readRestart(levelPointer, restart, scheme, tree)

Read the serialized restart file into the state vectors

Arguments

Type IntentOptional 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