counted Function

private pure function counted(self, j, n)

Index of the j-th point counted in the intermediate markers' direction.

Arguments

Type IntentOptional Attributes Name
type(MarkerArtist), intent(in) :: self
integer, intent(in) :: j

position in the counting order (1 to n); number of points

integer, intent(in) :: n

position in the counting order (1 to n); number of points

Return Value integer


Called by

proc~~counted~~CalledByGraph proc~counted counted proc~intermediates_by_data intermediates_by_data proc~intermediates_by_data->proc~counted proc~intermediates_by_distance intermediates_by_distance proc~intermediates_by_distance->proc~counted proc~intermediates_by_time intermediates_by_time proc~intermediates_by_time->proc~counted proc~add_intermediates add_intermediates proc~add_intermediates->proc~intermediates_by_data proc~add_intermediates->proc~intermediates_by_distance proc~add_intermediates->proc~intermediates_by_time proc~marker_update MarkerArtist%marker_update proc~marker_update->proc~add_intermediates

Source Code

    pure integer function counted(self, j, n)
        type(MarkerArtist), intent(in) :: self
        integer, intent(in) :: j, n                         !! position in the counting order (1 to n); number of points
        counted = merge(n + 1 - j, j, self%direction_ == MARKER_END)
    end function counted