Remove this frame from all its parents and children (before it goes out of scope or is deallocated while in a tree).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(ReferenceFrame), | intent(inout), | target | :: | self |
subroutine detach(self) class(ReferenceFrame), intent(inout), target :: self logical :: ok do while (self%n_parents > 0) ok = self%parents(self%n_parents)%p%remove_child(self) end do do while (self%n_children > 0) ok = self%remove_child(self%children(self%n_children)%p) end do end subroutine detach