fillArbiMyGhostsFromFiner_avg Subroutine

public subroutine fillArbiMyGhostsFromFiner_avg(method, tLevelDesc, level, stencil, sVal, tVal, nTargets, targetList, nScalars)

Interpolate auxiliary field from fine source to coarse target

This subroutine's interface must match the abstract interface definition intpRoutine_arbitraryVal in intp/mus_interpolate_header_module.f90 in order to be callable via do_intpArbiVal function pointer.

Arguments

TypeIntentOptionalAttributesName
class(mus_interpolation_method_type), intent(inout) :: method
type(tem_levelDesc_type), intent(in) :: tLevelDesc

level descriptor on target level

integer, intent(in) :: level

my refinement level

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

stencil header

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

State vector of SOURCE FLUID elements

real(kind=rk), intent(inout) :: tVal(:)

State vector of TARGET GHOST elements

integer, intent(in) :: nTargets

List of target elements ( their position in depSource list )

integer, intent(in) :: targetList(nTargets)
integer, intent(in) :: nScalars

number of scalars to interpolate


Contents


Variables

TypeVisibilityAttributesNameInitial
integer, private :: sourceLevel
integer, private :: sourceElem
integer, private :: targetLevel
integer, private :: targetElem
integer, private :: iElem
integer, private :: indElem
integer, private :: iSourceElem
integer, private :: nSourceElems
real(kind=rk), private :: inv_nSourceElems
real(kind=rk), private :: tArbi(nScalars)
real(kind=rk), private :: sArbi(nScalars)