calculateMoment Interface

interface
private pure module function calculateMoment(this, f, h, mOrder, g, gDependsOnX) result(res)

Arguments

Type IntentOptional Attributes Name
class(VSpace), intent(in) :: this
real(kind=rk), intent(in), dimension(:) :: f
integer(kind=ik), intent(in) :: h
integer(kind=ik), intent(in) :: mOrder
real(kind=rk), intent(in), optional, dimension(:) :: g
logical, intent(in), optional :: gDependsOnX

Return Value real(kind=rk),allocatable,dimension(:)

Description

Calculate moment of the h-th harmonic of passed local distribution function f, optionally multiplied by g(v). If gDependsOnX is .true. assumes that g is given as a strided array with stride numV, and it is used to allocate the result - this allows g to not have a halo while f does. The moment is of order mOrder.