The root of a frame's tree (through first parents).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(ReferenceFrame), | intent(in), | target | :: | f |
the frame |
function root_of(f) result(r) class(ReferenceFrame), intent(in), target :: f !! the frame class(ReferenceFrame), pointer :: r r => f do while (r%num_parents() > 0) r => r%parent(1) end do end function root_of