single_process_element Subroutine

private subroutine single_process_element(targetID, levelDesc, tree, proc, iProc, minLevel, elemPos, stencil, nesting, updated, skip_add_additionalGhost)

Determine the location (which process) of a requested element, which was identified to be located on one single process (can be local or remote) If it is located on a remote process: add to halo list local process: identify if ghost or fluid

Arguments

TypeIntentOptionalAttributesName
integer(kind=long_k), intent(in) :: targetID

neighboring treeID

type(tem_levelDesc_type), intent(inout) :: levelDesc(minLevel:)

the level descriptor to be filled

type(treelmesh_type), intent(in) :: tree

tree information

type(tem_comm_env_type), intent(in) :: proc

Process description to use.

integer, intent(in) :: iProc

Process on which targetID is located

integer, intent(in) :: minLevel

minimum level fluid element in the tree

integer, intent(out) :: elemPos

targetID element position in the levelDesc % elem list

type(tem_stencilHeader_type), intent(in) :: stencil

current stencil definition

integer, intent(in) :: nesting

nesting level

logical, intent(out) :: updated

was the element updated in this call?

logical, intent(in), optional :: skip_add_additionalGhost

logical, optional, if true no ghosts are added


Calls

proc~~single_process_element~~CallsGraph proc~single_process_element single_process_element interface~append~4 append proc~single_process_element->interface~append~4 proc~identify_local_element identify_local_element proc~single_process_element->proc~identify_local_element proc~tem_levelof tem_LevelOf proc~single_process_element->proc~tem_levelof interface~init~15 init proc~single_process_element->interface~init~15 proc~tem_abort tem_abort proc~single_process_element->proc~tem_abort proc~append_ga_dynlong append_ga_dynlong interface~append~4->proc~append_ga_dynlong proc~append_ga_dynlong_vec append_ga_dynlong_vec interface~append~4->proc~append_ga_dynlong_vec proc~identify_local_element->interface~append~4 proc~identify_local_element->proc~tem_levelof interface~positionofval~4 positionofval proc~identify_local_element->interface~positionofval~4 proc~add_all_virtual_children add_all_virtual_children proc~identify_local_element->proc~add_all_virtual_children proc~add_ghostfromfiner add_ghostFromFiner proc~identify_local_element->proc~add_ghostfromfiner proc~tem_posofpath tem_PosOfPath proc~identify_local_element->proc~tem_posofpath proc~tem_pathof tem_PathOf proc~identify_local_element->proc~tem_pathof proc~tem_tidinfo tem_tIDinfo proc~identify_local_element->proc~tem_tidinfo proc~init_ga2d_real init_ga2d_real interface~init~15->proc~init_ga2d_real mpi_abort mpi_abort proc~tem_abort->mpi_abort proc~posofval_label posofval_label interface~positionofval~4->proc~posofval_label interface~expand~2 expand proc~append_ga_dynlong->interface~expand~2 proc~add_all_virtual_children->interface~append~4 proc~add_all_virtual_children->proc~tem_levelof proc~add_all_virtual_children->interface~init~15 proc~add_all_virtual_children->interface~positionofval~4 proc~add_all_virtual_children->proc~add_all_virtual_children proc~tem_find_bcs_fromcoarser tem_find_BCs_fromCoarser proc~add_all_virtual_children->proc~tem_find_bcs_fromcoarser proc~tem_childnumber tem_childNumber proc~add_all_virtual_children->proc~tem_childnumber proc~tem_idofcoord tem_IdOfCoord proc~add_all_virtual_children->proc~tem_idofcoord proc~tem_coordofid tem_CoordOfId proc~add_all_virtual_children->proc~tem_coordofid proc~append_ga_dynlong_vec->interface~expand~2 proc~add_ghostfromfiner->interface~append~4 proc~add_ghostfromfiner->proc~tem_levelof proc~add_ghostfromfiner->interface~positionofval~4 proc~add_ghostfromfiner->proc~add_ghostfromfiner proc~add_ghostfromfiner->proc~tem_posofpath proc~add_ghostfromfiner->proc~tem_pathof proc~tem_directchildren tem_directChildren proc~add_ghostfromfiner->proc~tem_directchildren proc~tem_find_bcs_fromfiner tem_find_BCs_fromFiner proc~add_ghostfromfiner->proc~tem_find_bcs_fromfiner proc~tem_elemsize tem_ElemSize proc~tem_tidinfo->proc~tem_elemsize proc~tem_tidinfo->proc~tem_coordofid proc~tem_baryofid tem_BaryOfId proc~tem_tidinfo->proc~tem_baryofid proc~expand_ga_dynlong expand_ga_dynlong interface~expand~2->proc~expand_ga_dynlong proc~childtostencil childToStencil proc~tem_find_bcs_fromcoarser->proc~childtostencil proc~tem_elemsize->proc~tem_levelof proc~tem_elemsizelevel tem_ElemSizeLevel proc~tem_elemsize->proc~tem_elemsizelevel proc~tem_coordofid->proc~tem_levelof proc~tem_find_bcs_fromfiner->interface~append~4 proc~tem_find_bcs_fromfiner->interface~init~15 proc~update_childneighborid update_childNeighborID proc~tem_find_bcs_fromfiner->proc~update_childneighborid proc~stenciltochild stencilToChild proc~tem_find_bcs_fromfiner->proc~stenciltochild interface~sortedposofval~4 sortedposofval proc~posofval_label->interface~sortedposofval~4 proc~tem_baryofid->proc~tem_coordofid proc~tem_baryofid->proc~tem_elemsizelevel

Called by

proc~~single_process_element~~CalledByGraph proc~single_process_element single_process_element proc~identify_elements identify_elements proc~identify_elements->proc~single_process_element proc~identify_elements->proc~identify_elements proc~create_allparentneighbors create_allParentNeighbors proc~identify_elements->proc~create_allparentneighbors proc~identify_stencilneigh identify_stencilNeigh proc~identify_elements->proc~identify_stencilneigh proc~build_levelelements build_levelElements proc~build_levelelements->proc~identify_elements proc~identify_additionalneigh identify_additionalNeigh proc~build_levelelements->proc~identify_additionalneigh proc~identify_additionalneigh->proc~identify_elements proc~create_allparentneighbors->proc~identify_elements proc~create_allparentneighbors->proc~identify_stencilneigh proc~identify_stencilneigh->proc~identify_elements proc~tem_find_allelements tem_find_allElements proc~tem_find_allelements->proc~build_levelelements proc~tem_find_allelements->proc~identify_additionalneigh proc~request_remotehalos request_remoteHalos proc~request_remotehalos->proc~create_allparentneighbors proc~request_remotehalos->proc~identify_stencilneigh proc~communicate_elements communicate_elements proc~communicate_elements->proc~request_remotehalos proc~tem_create_leveldesc tem_create_levelDesc proc~tem_create_leveldesc->proc~tem_find_allelements

Contents


Variables

TypeVisibilityAttributesNameInitial
type(tem_stencilElement_type), private :: emptyStencil(1)
integer, private :: targetLevel
logical, private :: wasAdded
logical, private :: l_skip_add_additionalGhost