child_index Function

private function child_index(self, frame)

Index of frame among the children, or 0.

Type Bound

ReferenceFrame

Arguments

Type IntentOptional Attributes Name
class(ReferenceFrame), intent(in) :: self
class(ReferenceFrame), intent(in), target :: frame

the frame to find

Return Value integer


Calls

proc~~child_index~~CallsGraph proc~child_index ReferenceFrame%child_index proc~find find proc~child_index->proc~find

Called by

proc~~child_index~~CalledByGraph proc~child_index ReferenceFrame%child_index proc~add_child ReferenceFrame%add_child proc~add_child->proc~child_index

Source Code

    integer function child_index(self, frame)
        class(ReferenceFrame), intent(in) :: self
        class(ReferenceFrame), intent(in), target :: frame  !! the frame to find
        child_index = find(self%children, self%n_children, frame)
    end function child_index