tem_ElemSizeLevel Function

public pure function tem_ElemSizeLevel(tree, level) result(dx)

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

Arguments

Type IntentOptional 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

Return Value real(kind=rk)

size of Element


Called by

proc~~tem_elemsizelevel~~CalledByGraph proc~tem_elemsizelevel tem_ElemSizeLevel proc~tem_baryofid tem_BaryOfId proc~tem_baryofid->proc~tem_elemsizelevel proc~tem_elemsize tem_ElemSize proc~tem_elemsize->proc~tem_elemsizelevel proc~tem_endofid tem_endOfId proc~tem_endofid->proc~tem_elemsizelevel proc~tem_originofid tem_originOfId proc~tem_originofid->proc~tem_elemsizelevel

Source Code

  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