update_connectivity Subroutine

private subroutine update_connectivity(scheme, iLevel)

Construct the propagation stencil for each element

the bounce back rules have to be applied here

     ! Set all the pdf links of target element to an infinitesimally
     ! small value. This will prevent density from becoming NaN if pdfs
     ! are set to zero and besides changed elements will have a very
     ! small density which will help in visualization and differentiate
     ! them from other fluid elements
     if (btest(elemProp, prp_fluidify) ) then
        scheme%state(iLevel)%val(                                         &
          &   ( ielem-1)* scheme%varsys%nscalars+idx_idir,:) =  &
          &   0.000000001_rk
     end if


type(mus_scheme_type), intent(inout) :: scheme

scheme information

integer, intent(in) :: iLevel

current level

Called by

proc~~update_connectivity~~CalledByGraph proc~update_connectivity update_connectivity proc~mus_geomincr mus_geomIncr proc~mus_geomincr->proc~update_connectivity proc~check_flow_status check_flow_status proc~check_flow_status->proc~mus_geomincr proc~do_recursive_multilevel do_recursive_multiLevel proc~do_recursive_multilevel->proc~check_flow_status proc~do_fast_singlelevel do_fast_singleLevel proc~do_fast_singlelevel->proc~check_flow_status proc~do_benchmark do_benchmark proc~do_benchmark->proc~check_flow_status



integer, private :: iElem
integer, private :: iField
integer, private :: idx_idir
integer, private :: QQ
integer, private :: iDir
integer, private :: invDir
integer, private :: GetFromDir
integer, private :: GetFromPos
integer, private :: neighPos
integer(kind=long_k), private :: neighProp
integer(kind=long_k), private :: elemProp
integer, private :: nElems
integer, private :: nSize