oftraj_addposition Subroutine

public subroutine oftraj_addposition(x, y, z)

Add a position to the current trajectory.

Add a position as long as the new number of positions will not exceed the current number of times. Note that for 2D trajectories, the z component will be ignored.

This position corresponds to the most recent time provided by oftraj_addtime.

Warning

If multiple positions are added after the previous call to oftraj_addtime, all but the last position will be overwritten.

Arguments

Type IntentOptional Attributes Name
real(kind=real64), intent(in) :: x

X position.

real(kind=real64), intent(in) :: y

Y position.

real(kind=real64), intent(in) :: z

Z position.