Return the size of elements on a given levle in the mesh by taking into account the size of the bounding cube given in the global info of the tree
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(treelmesh_type), | intent(in) | :: | tree |
Mesh to locate the point in |
||
integer, | intent(in) | :: | level |
given level to get the size for |
size of Element
pure function tem_ElemSizeLevel( tree, level ) result( dx ) ! -------------------------------------------------------------------- ! !> Mesh to locate the point in type(treelmesh_type), intent(in) :: tree !> given level to get the size for integer, intent(in) :: level !> size of Element real(kind=rk) :: dx ! -------------------------------------------------------------------- ! dx = tree%global%BoundingCubeLength / real(2**level, kind=rk) end function tem_ElemSizeLevel