rearrange_bc_elems Subroutine

public subroutine rearrange_bc_elems(minLevel, maxLevel, nValid, posInBCElem, nElems, elemLvl)

It removes non-valid elements while still maintaining the origianl order. The given bc elements (elems) contains both valid and non-valid elements. Position of valid elements are given by posInBCElem. Valid elements are moved towards the start of the elems so that they become continuous in the elems.

Arguments

TypeIntentOptionalAttributesName
integer, intent(in) :: minLevel
integer, intent(in) :: maxLevel
integer, intent(in) :: nValid(minLevel:maxLevel)

number of valid BC elements

integer, intent(in) :: posInBCElem(maxval(nElems),minLevel:maxLevel)

their position in bc_elems_type

integer, intent(in) :: nElems(minLevel:maxLevel)

BC elements information

type(bc_elems_type), intent(inout) :: elemLvl(minLevel:maxLevel)

BC elements information


Called by

proc~~rearrange_bc_elems~~CalledByGraph proc~rearrange_bc_elems rearrange_bc_elems proc~remove_solid_in_bc remove_solid_in_bc proc~remove_solid_in_bc->proc~rearrange_bc_elems proc~update_bclists update_BClists proc~update_bclists->proc~remove_solid_in_bc proc~mus_construct mus_construct proc~mus_construct->proc~update_bclists proc~mus_initialize mus_initialize proc~mus_initialize->proc~mus_construct program~mus_harvesting mus_harvesting program~mus_harvesting->proc~mus_construct proc~mus_perform_dynloadbal mus_perform_dynLoadBal proc~mus_perform_dynloadbal->proc~mus_construct

Contents


Variables

TypeVisibilityAttributesNameInitial
integer, private :: iElem
integer, private :: iLevel
integer, private :: oldPos