Set the degrees of freedom (2 or 3) of positions and optionals; clears the trajectory.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(Trajectory), | intent(inout) | :: | self | |||
| integer, | intent(in) | :: | dof |
degrees of freedom (2 or 3) |
subroutine set_dof(self, dof) class(Trajectory), intent(inout) :: self integer, intent(in) :: dof !! degrees of freedom (2 or 3) self%dof_ = max(2, min(3, dof)) call self%clear() end subroutine set_dof