Optional vector k (1 to num_optionals) of position i.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(Trajectory), | intent(in) | :: | self | |||
| integer, | intent(in) | :: | i |
the position (1 to num_positions); the optional (1 to num_optionals) |
||
| integer, | intent(in) | :: | k |
the position (1 to num_positions); the optional (1 to num_optionals) |
pure function optional(self, i, k) result(v) class(Trajectory), intent(in) :: self integer, intent(in) :: i, k !! the position (1 to num_positions); the optional (1 to num_optionals) real(wp) :: v(3) v = self%posopt(:, k, i) end function optional