Set data source k (1: x, 2: y, 3: z); returns whether the trajectory has the data.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(CurveArtist), | intent(inout) | :: | self | |||
| integer, | intent(in) | :: | k |
the component (1: x, 2: y, 3: z) |
||
| type(DataSource), | intent(in) | :: | src |
its data source |
logical function set_curve_source(self, k, src) result(valid) class(CurveArtist), intent(inout) :: self integer, intent(in) :: k !! the component (1: x, 2: y, 3: z) type(DataSource), intent(in) :: src !! its data source self%sources_(k) = src self%default_data = .false. self%seen_generation = -1 valid = .true. if (associated(self%traj)) valid = self%traj%verify_data(self%sources_) end function set_curve_source