True if the trajectory has the data the sources refer to (elements and optionals in range).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(Trajectory), | intent(in) | :: | self | |||
| type(DataSource), | intent(in) | :: | sources(3) |
where the components come from |
pure logical function verify_data(self, sources) class(Trajectory), intent(in) :: self type(DataSource), intent(in) :: sources(3) !! where the components come from integer :: k verify_data = .true. do k = 1, 3 select case (sources(k)%src) case (SOURCE_ZERO, SOURCE_TIME) case (SOURCE_POSOPT) if (sources(k)%element < 1 .or. sources(k)%element > self%dof_ .or. & sources(k)%opt < 0 .or. sources(k)%opt > self%nopt_) verify_data = .false. case (SOURCE_ATTITUDE) if (sources(k)%element < 1 .or. sources(k)%element > 4) verify_data = .false. case default verify_data = .false. end select end do end function verify_data