getContainingVCell Module Function

pure module function getContainingVCell(this, v) result(ind)

Return index of cell which containes the given velocity value v. If the returned index is 0, the point is outside of the grid.

Arguments

Type IntentOptional Attributes Name
class(VSpace), intent(in) :: this
real(kind=rk), intent(in) :: v

Return Value integer(kind=ik)