Number of points available with these sources: the number of times, limited by the positions or attitudes they use; huge() if all are zero.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(Trajectory), | intent(in) | :: | self | |||
| type(DataSource), | intent(in) | :: | sources(3) |
where the components come from |
pure integer function num_points(self, sources) class(Trajectory), intent(in) :: self type(DataSource), intent(in) :: sources(3) !! where the components come from integer :: k if (all(sources%src == SOURCE_ZERO)) then num_points = huge(0) return end if num_points = self%n_times do k = 1, 3 if (sources(k)%src == SOURCE_POSOPT) num_points = min(num_points, self%n_pos) if (sources(k)%src == SOURCE_ATTITUDE) num_points = min(num_points, self%n_att) end do end function num_points