This routine computes weights for weighted_average interpolation.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rk), | intent(out), | allocatable | :: | weights(:) | computed weight  | 
|
| integer, | intent(in) | :: | nFoundSources | Number of source elements found  | 
||
| integer, | intent(in) | :: | neighDir(nFoundSources) | cxDir for found sounce elements  | 
||
| real(kind=rk), | intent(in) | :: | targetBary(3) | child bary relative to parent  | 
||
| type(mus_interpolation_config_type), | intent(in) | :: | intp_config | Interpolation config info  | 
||
| real(kind=rk), | intent(in) | :: | cxDirRK(:,:) | cxDir of current source  | 
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| real(kind=rk), | private | :: | scalar_dist | ||||
| real(kind=rk), | private | :: | distance(3) | absolute distances  | 
|||
| real(kind=rk), | private | :: | sumWeight | ||||
| integer, | private | :: | iSrc | ||||
| integer, | private | :: | iNeigh |