build_BClists Subroutine

private subroutine build_BClists(globBC, tree, bc_prop, minLevel, maxLevel, layout, field, comm)

Assemble the level-wise list of elements which adhere to the boundary conditions.

The boundaries will then be treated for each level one by one, running over the list of elements. The bitmasks are set for the directions pointing into the domain. In the LBM, the incoming densities have to be updated. As boundaries are being set before the kernel, the state arrays have to be stored to the FETCH position

Arguments

Type IntentOptional Attributes Name
type(glob_boundary_type), intent(out), allocatable :: globBC(:)

boundaries for the elements with bnd property set

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

fluid tree from mesh

type(tem_BC_prop_type), intent(in) :: bc_prop

boundary information from mesh

integer, intent(in) :: minLevel

contains pdf global information

integer, intent(in) :: maxLevel

contains pdf global information

type(mus_scheme_layout_type), intent(in) :: layout

scheme layout

type(mus_field_type), intent(in) :: field(:)

field type

integer, intent(in) :: comm

mpi communication enviroment with mpi communicator