oftraj_setoptionalvec Subroutine

public subroutine oftraj_setoptionalvec(index, opt)

Set the optional with the given index, for the most recently added position.

This applies to the current active Trajectory. Here the optional is given as a 2 or 3 element vector.

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

Arguments

Type IntentOptional Attributes Name
integer(kind=int32), intent(in) :: index

index of optional to add values to.

real(kind=real64), intent(in), dimension(:) :: opt

Array of values to add to optional (length 3).