Number of points the data sources give: 0 for invalid sources or no trajectory, huge() if all are zero.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(Trajectory), | intent(in), | pointer | :: | traj |
the trajectory (null: none) |
|
| type(DataSource), | intent(in) | :: | sources(3) |
x, y, z data sources |
integer function source_points(traj, sources) result(n) type(Trajectory), pointer, intent(in) :: traj !! the trajectory (null: none) type(DataSource), intent(in) :: sources(3) !! x, y, z data sources n = 0 if (.not. associated(traj)) return if (.not. traj%verify_data(sources)) return n = traj%num_points(sources) end function source_points