Set the number of optional vectors per position; clears the trajectory.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(Trajectory), | intent(inout) | :: | self | |||
| integer, | intent(in) | :: | nopt |
optional vectors per position (>= 0) |
subroutine set_num_optionals(self, nopt) class(Trajectory), intent(inout) :: self integer, intent(in) :: nopt !! optional vectors per position (>= 0) if (nopt /= self%nopt_ .and. allocated(self%posopt)) deallocate(self%posopt) self%nopt_ = max(0, nopt) call self%clear() end subroutine set_num_optionals