Index of frame in list(1:n), or 0.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(FramePointer), | intent(in), | allocatable | :: | list(:) |
first n used |
|
| integer, | intent(in) | :: | n |
number of frames in list |
||
| class(ReferenceFrame), | intent(in), | target | :: | frame |
the frame to find |
integer function find(list, n, frame) type(FramePointer), allocatable, intent(in) :: list(:) !! first n used integer, intent(in) :: n !! number of frames in list class(ReferenceFrame), intent(in), target :: frame !! the frame to find integer :: k find = 0 do k = 1, n if (associated(list(k)%p, frame)) then find = k return end if end do end function find