mus_build_BCStencils Subroutine

private subroutine mus_build_BCStencils(globBC, bc, prevailDir, prefix, minLevel, maxLevel, stencil_labels, grwStencil)

subroutine to find neighbours of element with individual (for each element) stencil definitions. Unique stencil label for boundary stencils are created with boundary label and stencil%cxDir therefore each stencil is limited to one boundary type

Arguments

TypeIntentOptionalAttributesName
type(glob_boundary_type), intent(in) :: globBC

boundaries for the elements with bnd property set

type(boundary_type), intent(inout) :: bc

field boundary with boundary neighbor info

real(kind=rk), intent(in) :: prevailDir(:,:)

scheme layout

character(len=*), intent(in) :: prefix

field label

integer, intent(in) :: minLevel

min and max level

integer, intent(in) :: maxLevel

min and max level

type(dyn_labelarray_type), intent(inout) :: stencil_labels

dynamic array of stencil labels

type(grw_stencilheaderarray_type), intent(inout) :: grwStencil

growing array of stencils


Calls

proc~~mus_build_bcstencils~~CallsGraph proc~mus_build_bcstencils mus_build_BCStencils interface~init~5 init proc~mus_build_bcstencils->interface~init~5 interface~append~3 append proc~mus_build_bcstencils->interface~append~3 proc~tem_stencil_getlabelforcxdir tem_stencil_getLabelForcxDir proc~mus_build_bcstencils->proc~tem_stencil_getlabelforcxdir

Called by

proc~~mus_build_bcstencils~~CalledByGraph proc~mus_build_bcstencils mus_build_BCStencils proc~mus_construct mus_construct proc~mus_construct->proc~mus_build_bcstencils proc~mus_initialize mus_initialize proc~mus_initialize->proc~mus_construct proc~mus_perform_dynloadbal mus_perform_dynLoadBal proc~mus_perform_dynloadbal->proc~mus_construct program~mus_harvesting mus_harvesting program~mus_harvesting->proc~mus_construct program~musubi musubi program~musubi->proc~mus_initialize none~do_balance do_balance none~do_balance->proc~mus_perform_dynloadbal proc~mus_solve mus_solve proc~mus_solve->none~do_balance

Contents


Variables

TypeVisibilityAttributesNameInitial
integer, private :: iElem
integer, private :: elemPos
integer, private :: iLevel
integer, private :: iNeigh
integer, private :: stencilPos
integer, private :: normal(3)
type(tem_stencilHeader_type), private :: stencil
logical, private :: wasAdded
character(len=labelLen), private :: stnLabel