tem_directParent Function

private elemental function tem_directParent(TreeID) result(res)

This function delivers the parent ID of a given TreeID

Arguments

Type IntentOptional Attributes Name
integer(kind=long_k), intent(in) :: TreeID

current treeID

Return Value integer(kind=long_k)

result of function containing parent ID


Called by

proc~~tem_directparent~~CalledByGraph proc~tem_directparent tem_directParent interface~tem_parentof tem_ParentOf interface~tem_parentof->proc~tem_directparent proc~create_allparentneighbors create_allParentNeighbors proc~create_allparentneighbors->interface~tem_parentof proc~identify_elements identify_elements proc~create_allparentneighbors->proc~identify_elements proc~tem_adddep_up tem_addDep_up proc~tem_adddep_up->interface~tem_parentof proc~tem_build_verticaldependencies tem_build_verticalDependencies proc~tem_build_verticaldependencies->interface~tem_parentof proc~update_childneighborid update_childNeighborID proc~update_childneighborid->interface~tem_parentof proc~identify_elements->proc~create_allparentneighbors proc~identify_elements->proc~identify_elements proc~request_remotehalos request_remoteHalos proc~request_remotehalos->proc~create_allparentneighbors proc~tem_create_leveldesc tem_create_levelDesc proc~tem_create_leveldesc->proc~tem_build_verticaldependencies proc~tem_facedep_verticalup tem_faceDep_verticalUp proc~tem_facedep_verticalup->proc~tem_adddep_up proc~tem_find_bcs_fromfiner tem_find_BCs_fromFiner proc~tem_find_bcs_fromfiner->proc~update_childneighborid proc~add_ghostfromfiner add_ghostFromFiner proc~add_ghostfromfiner->proc~tem_find_bcs_fromfiner proc~build_levelelements build_levelElements proc~build_levelelements->proc~identify_elements proc~communicate_elements communicate_elements proc~communicate_elements->proc~request_remotehalos proc~identify_additionalneigh identify_additionalNeigh proc~identify_additionalneigh->proc~identify_elements proc~identify_stencilneigh identify_stencilNeigh proc~identify_stencilneigh->proc~identify_elements proc~tem_dimbydim_construction tem_dimByDim_construction proc~tem_dimbydim_construction->proc~tem_create_leveldesc proc~tem_facedep_vertical tem_faceDep_vertical proc~tem_facedep_vertical->proc~tem_facedep_verticalup

Source Code

  elemental function tem_directParent(TreeID) result(res)
    ! ---------------------------------------------------------------------------
    !> current treeID
    integer(kind=long_k), intent(in) :: TreeID
    !> result of function containing parent ID
    integer(kind=long_k) :: res
    ! ---------------------------------------------------------------------------

    ! res = ( treeID - 1 ) / 8
    res = ishft( (treeID-1_long_k), -3 )

  end function tem_directParent