load_tem Subroutine

public subroutine load_tem(me, conf, myPart, nParts, comm, levelWeight, meshDir, parent)

Load the treelmesh

Depending on the configuration given in conf, this will either load a a \ref tem_distributed_octree "tree mesh" from disk with the given prefix or \ref tem_load_internal "create the mesh internally".

Arguments

TypeIntentOptionalAttributesName
type(treelmesh_type), intent(out) :: me

Structure to load the mesh to

type(flu_State) :: conf

Directory containing the mesh informations

integer, intent(in) :: myPart

Partition to use on the calling process (= MPI Rank in comm)

integer, intent(in) :: nParts

Number of partitions, the mesh is partitioned into (= Number of MPI processes in comm).

integer, intent(in) :: comm

MPI Communicator to use now defaults to the one given in the tree%global%comm

real(kind=rk), intent(in), optional :: levelWeight(globalMaxLevels)

Balancing weight for elements on different levels. If these weights are present, the mesh is partitioned initially according to the given weights. This can not be combined with given offsets. If offset is also provided they will overwrite the levelWeight distribution.

character(len=*), intent(out), optional :: meshDir

output Mesh directory name

integer, intent(in), optional :: parent

optional parent handle


Calls

proc~~load_tem~~CallsGraph proc~load_tem load_tem proc~tem_create_endiansuffix tem_create_EndianSuffix proc~load_tem->proc~tem_create_endiansuffix interface~aot_get_val~2 aot_get_val proc~load_tem->interface~aot_get_val~2 proc~tem_load_internal tem_load_internal proc~load_tem->proc~tem_load_internal proc~load_treelmesh load_treelmesh proc~load_tem->proc~load_treelmesh proc~tem_balance_sparta tem_balance_sparta proc~load_tem->proc~tem_balance_sparta proc~tem_destroy_sparta tem_destroy_sparta proc~load_tem->proc~tem_destroy_sparta proc~tem_horizontalspacer tem_horizontalSpacer proc~load_tem->proc~tem_horizontalspacer proc~dump_meshheader dump_meshHeader proc~load_tem->proc~dump_meshheader proc~aot_table_open aot_table_open proc~load_tem->proc~aot_table_open proc~tem_load_weights tem_load_weights proc~load_tem->proc~tem_load_weights proc~tem_init_sparta tem_init_sparta proc~load_tem->proc~tem_init_sparta proc~aot_table_close aot_table_close proc~load_tem->proc~aot_table_close proc~tem_abort tem_abort proc~load_tem->proc~tem_abort proc~load_tem_global load_tem_global proc~load_tem->proc~load_tem_global proc~exchange_elements exchange_elements proc~load_tem->proc~exchange_elements

Called by

proc~~load_tem~~CalledByGraph proc~load_tem load_tem proc~load_env load_env proc~load_env->proc~load_tem proc~tem_restart_readheader tem_restart_readHeader proc~tem_restart_readheader->proc~load_tem program~tem_varsys_stfunvar_test tem_varSys_stfunVar_test program~tem_varsys_stfunvar_test->proc~load_env program~tem_varsys_statevar_test tem_varSys_stateVar_test program~tem_varsys_statevar_test->proc~load_env program~tem_varsys_derivevar_test tem_varSys_deriveVar_test program~tem_varsys_derivevar_test->proc~load_env proc~check_variableoperations check_variableOperations proc~check_variableoperations->proc~load_env program~tem_variable_evaltype_test tem_variable_evaltype_test program~tem_variable_evaltype_test->proc~load_env program~tem_varsys_test tem_varSys_test program~tem_varsys_test->proc~load_env program~tem_spacetime_fun_test tem_spacetime_fun_test program~tem_spacetime_fun_test->proc~load_env proc~tem_load_restart tem_load_restart proc~tem_load_restart->proc~tem_restart_readheader program~tem_variable_extract_test tem_variable_extract_test program~tem_variable_extract_test->proc~load_env program~tem_variable_combine_test tem_variable_combine_Test program~tem_variable_combine_test->proc~load_env proc~check_serial_singlelevel_facedesc check_serial_singlelevel_faceDesc proc~check_serial_singlelevel_facedesc->proc~load_env program~tem_varsys_opvar_test tem_varSys_opVar_test program~tem_varsys_opvar_test->proc~load_env proc~check_parallel_singlelevel_facedesc check_parallel_singlelevel_faceDesc proc~check_parallel_singlelevel_facedesc->proc~load_env program~tem_face_test~3 tem_face_test program~tem_face_test~3->proc~check_parallel_singlelevel_facedesc program~tem_face_test tem_face_test program~tem_face_test->proc~check_serial_singlelevel_facedesc program~tem_logical_opertor_test tem_logical_opertor_test program~tem_logical_opertor_test->proc~check_variableoperations

Contents


Variables

TypeVisibilityAttributesNameInitial
integer, private :: tem_handle
character(len=pathLen), private :: dirname
character(len=4), private :: EndianSuffix
integer, private :: mesh_error
integer, private :: weights_error
integer, private :: commLocal
real(kind=rk), private, allocatable:: weights(:)
integer(kind=long_k), private :: chunksize
integer(kind=long_k), private :: remainder
logical, private :: found_weights
type(tem_sparta_type), private :: sparta