getDensity_forPdfSubset Function

private pure function getDensity_forPdfSubset(subset, stencil, varPos) result(res)

Calculate the density of a given subset of pdfs vector (sum up all values)

Arguments

Type IntentOptional Attributes Name
real(kind=rk), intent(in) :: subset(:)
type(tem_stencilHeader_type), intent(in) :: stencil
integer, intent(in) :: varPos(:)

Return Value real(kind=rk)