Set component k of the start (side 1) or end (side 2) sources.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(SegmentArtist), | intent(inout) | :: | self | |||
| integer, | intent(in) | :: | side |
1: start, 2: end; the component (1: x, 2: y, 3: z) |
||
| integer, | intent(in) | :: | k |
1: start, 2: end; the component (1: x, 2: y, 3: z) |
||
| type(DataSource), | intent(in) | :: | src |
its data source |
logical function set_segment_source(self, side, k, src) result(valid) class(SegmentArtist), intent(inout) :: self integer, intent(in) :: side, k !! 1: start, 2: end; the component (1: x, 2: y, 3: z) type(DataSource), intent(in) :: src !! its data source if (side == 1) then self%start_(k) = src else self%end_(k) = src end if self%default_data = .false. self%seen_generation = -1 valid = .true. if (associated(self%traj)) valid = self%traj%verify_data(self%start_) .and. self%traj%verify_data(self%end_) end function set_segment_source