filterCoords Module Function

pure module function filterCoords(this, ind, coords, normalize) result(res)

Filters coordinate list of shape 1,: or 3,: based on partition data, leaving only those present at partition index ind. If normalize is true will shift all values in each dimension to so that the smallest value is 1

Arguments

Type IntentOptional Attributes Name
class(Partition), intent(in) :: this
integer(kind=ik), intent(in) :: ind
integer(kind=ik), intent(in), dimension(:,:) :: coords
logical, intent(in), optional :: normalize

Return Value integer(kind=ik), dimension(:,:), allocatable