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".
: to calculate levelWeight, global has to be loaded fisrt, maybe load_global shoule be moved out of this routine
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
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 |
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
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 |