tem_init_restart Subroutine

public subroutine tem_init_restart(me, solver, varMap, tree, subTree, nDofs_write, chunkSize, solSpec_unit)

Initialize the global restart data type and prepare for the restart output

This routine is called as well for read as for write restart tasks It must be called after tem_load_restart and before the first call to any of tem_restart_* This routine is called only when restart is read from the restart table. If restart is performed from the initial condition table, then different routines (which are basically wrapped around by this one) are invoked

Arguments

TypeIntentOptionalAttributesName
type(tem_restart_type), intent(inout) :: me

The restart object to initialize.

type(tem_solveHead_type), intent(in), optional :: solver

Details about the solver.

type(tem_varMap_type), intent(in) :: varMap

Description of each variable system. This is ignored, if the data is provided by reading a restart. Contains position of variables to dump in restart file in global variable system for a scheme

type(treelmesh_type), intent(in) :: tree

Mesh, provided in treelm format

type(tem_subTree_type), intent(in), optional :: subTree

optional subTree of the given tree

integer, intent(in), optional :: nDofs_write

number of degrees of freedom for each variable of the equation system

integer, intent(in), optional :: chunkSize

use predefined chunkSize

integer, intent(in), optional :: solSpec_unit

Solver specific unit for restart header


Calls

proc~~tem_init_restart~~CallsGraph proc~tem_init_restart tem_init_restart proc~tem_init_restart_create_types tem_init_restart_create_types proc~tem_init_restart->proc~tem_init_restart_create_types proc~tem_init_restart_alloc tem_init_restart_alloc proc~tem_init_restart->proc~tem_init_restart_alloc proc~tem_restart_gettotalchunks tem_restart_getTotalChunks proc~tem_init_restart->proc~tem_restart_gettotalchunks proc~newunit newunit proc~tem_init_restart->proc~newunit mpi_type_contiguous mpi_type_contiguous proc~tem_init_restart_create_types->mpi_type_contiguous proc~check_mpi_error check_mpi_error proc~tem_init_restart_create_types->proc~check_mpi_error mpi_type_size mpi_type_size proc~tem_init_restart_create_types->mpi_type_size proc~tem_abort tem_abort proc~tem_init_restart_create_types->proc~tem_abort mpi_type_commit mpi_type_commit proc~tem_init_restart_create_types->mpi_type_commit proc~tem_solvertag tem_solverTag proc~tem_init_restart_alloc->proc~tem_solvertag mpi_allreduce mpi_allreduce proc~tem_restart_gettotalchunks->mpi_allreduce mpi_comm_rank mpi_comm_rank proc~tem_restart_gettotalchunks->mpi_comm_rank proc~tem_restart_gettotalchunks->proc~tem_abort proc~check_mpi_error->proc~tem_abort mpi_error_string mpi_error_string proc~check_mpi_error->mpi_error_string mpi_abort mpi_abort proc~tem_abort->mpi_abort

Called by

proc~~tem_init_restart~~CalledByGraph proc~tem_init_restart tem_init_restart proc~hvs_output_init hvs_output_init proc~hvs_output_init->proc~tem_init_restart proc~tem_init_tracker tem_init_tracker proc~tem_init_tracker->proc~hvs_output_init

Contents


Variables

TypeVisibilityAttributesNameInitial
integer, private :: comm
integer, private :: rank
integer, private :: comm_size
integer, private :: locElems
integer(kind=long_k), private :: globElems
integer(kind=long_k), private :: elemOff
integer, private :: read_stat
logical, private :: nUnitOpened
character(len=320), private :: solve_line