Follow only traj (none if it is not associated).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(TrajectoryFollower), | intent(inout) | :: | self | |||
| type(Trajectory), | intent(in), | pointer | :: | traj |
the trajectory to follow (not owned; null: none) |
subroutine set_trajectory(self, traj) class(TrajectoryFollower), intent(inout) :: self type(Trajectory), pointer, intent(in) :: traj !! the trajectory to follow (not owned; null: none) call self%remove_all() if (associated(traj)) call self%add_trajectory(traj) end subroutine set_trajectory