mus_interpolate_quad2D_leastSq Function

private pure function mus_interpolate_quad2D_leastSq(srcMom, targetCoord, LSFmat, nSources, nVals) result(phi)

Biquadratic interpolation for a vector quantity phi

Arguments

Type IntentOptional Attributes Name
real(kind=rk), intent(in) :: srcMom(nVals,nSources)

source values of the momentum on the square corners

real(kind=rk), intent(in) :: targetCoord(3)

interpolation location within the square

type(tem_matrix_type), intent(in) :: LSFmat

matrix for least square fit

integer, intent(in) :: nSources

Number of source elements

integer, intent(in) :: nVals

number of quantities to interpolation

Return Value real(kind=rk), (nVals)

interpolated value