generate_treelm_slice Subroutine

private subroutine generate_treelm_slice(me, origin, length, level, myPart, nParts, comm)

This serves as an simple grid generation for performance or scaling analysis without being obliged to use Seeder. You have to specify the generic grid parameters in the lua file instead of the mesh folder

 mesh = { predefined='slice',
          origin = {0.,0.,0.},
          length = 10.,
          refinementLevel = 6 }

You have to specify the shape 'slice', a bounding box origin, its length and also the refinement level, which results in different amount elements in the grid. The result of this routine is mainly the treeID list with the additional lists for saving the properties. The generated slice will be all elements in the first layer (XY plane) in Z-direction, with periodicity in Z direction.

Arguments

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

Mesh to generate

real(kind=rk), intent(in) :: origin(3)

Corner of the cube

real(kind=rk), intent(in) :: length

Length of cube

integer, intent(in) :: level

Resolution level

integer, intent(in) :: myPart

Partition of the caller (starts with 0)

integer, intent(in) :: nParts

Number of partitions

integer, intent(in) :: comm

communicator to be used


Calls

proc~~generate_treelm_slice~~CallsGraph proc~generate_treelm_slice generate_treelm_slice proc~tem_firstidatlevel tem_FirstIdAtLevel proc~generate_treelm_slice->proc~tem_firstidatlevel proc~tem_idofcoord tem_IdOfCoord proc~generate_treelm_slice->proc~tem_idofcoord proc~tem_coordof_2d_id tem_CoordOf_2d_Id proc~generate_treelm_slice->proc~tem_coordof_2d_id

Called by

proc~~generate_treelm_slice~~CalledByGraph proc~generate_treelm_slice generate_treelm_slice proc~tem_load_internal tem_load_internal proc~tem_load_internal->proc~generate_treelm_slice proc~load_tem load_tem proc~load_tem->proc~tem_load_internal 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_statevar_test tem_varSys_stateVar_test program~tem_varsys_statevar_test->proc~load_env proc~check_parallel_singlelevel_facedesc check_parallel_singlelevel_faceDesc proc~check_parallel_singlelevel_facedesc->proc~load_env program~tem_varsys_opvar_test tem_varSys_opVar_test program~tem_varsys_opvar_test->proc~load_env program~tem_variable_extract_test tem_variable_extract_test program~tem_variable_extract_test->proc~load_env program~tem_varsys_test tem_varSys_test program~tem_varsys_test->proc~load_env proc~check_serial_singlelevel_facedesc check_serial_singlelevel_faceDesc proc~check_serial_singlelevel_facedesc->proc~load_env proc~tem_load_restart tem_load_restart proc~tem_load_restart->proc~tem_restart_readheader program~tem_varsys_stfunvar_test tem_varSys_stfunVar_test program~tem_varsys_stfunvar_test->proc~load_env program~tem_variable_evaltype_test tem_variable_evaltype_test program~tem_variable_evaltype_test->proc~load_env proc~check_variableoperations check_variableOperations proc~check_variableoperations->proc~load_env program~tem_variable_combine_test tem_variable_combine_Test program~tem_variable_combine_test->proc~load_env program~tem_spacetime_fun_test tem_spacetime_fun_test program~tem_spacetime_fun_test->proc~load_env program~tem_varsys_derivevar_test tem_varSys_deriveVar_test program~tem_varsys_derivevar_test->proc~load_env

Contents


Variables

TypeVisibilityAttributesNameInitial
integer(kind=long_k), private :: firstID
integer(kind=long_k), private :: lastID
integer(kind=long_k), private :: share
integer(kind=long_k), private :: previous
integer, private :: remainder
integer, private :: iPart
integer, private :: iElem
integer, private :: coord(4)
integer, private :: lastcoord