last_trajectory Function

private function last_trajectory(self) result(traj)

The trajectory followed at the last update (null if none).

Type Bound

TrajectoryFollower

Arguments

Type IntentOptional Attributes Name
class(TrajectoryFollower), intent(in) :: self

Return Value type(Trajectory), pointer


Source Code

    function last_trajectory(self) result(traj)
        class(TrajectoryFollower), intent(in) :: self
        type(Trajectory), pointer :: traj
        traj => null()
        if (self%current >= 1 .and. self%current <= self%n) traj => self%trajs(self%current)%p
    end function last_trajectory