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.


Uses

Used by

  • module~~mus_restart_module~~UsedByGraph module~mus_restart_module mus_restart_module module~mus_aux_module mus_aux_module module~mus_aux_module->module~mus_restart_module program~mus_harvesting mus_harvesting program~mus_harvesting->module~mus_restart_module module~mus_flow_module mus_flow_module program~mus_harvesting->module~mus_flow_module module~mus_flow_module->module~mus_restart_module module~mus_program_module mus_program_module module~mus_program_module->module~mus_restart_module module~mus_program_module->module~mus_aux_module module~mus_program_module->module~mus_flow_module module~mus_control_module mus_control_module module~mus_program_module->module~mus_control_module module~mus_dynloadbal_module mus_dynLoadBal_module module~mus_program_module->module~mus_dynloadbal_module module~mus_control_module->module~mus_aux_module module~mus_dynloadbal_module->module~mus_flow_module program~musubi musubi program~musubi->module~mus_aux_module program~musubi->module~mus_program_module program~musubi->module~mus_control_module

Contents


Subroutines

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

Write the serialized buffer assembled in mus_serializeData to disk

Arguments

TypeIntentOptionalAttributesName
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

TypeIntentOptionalAttributesName
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