recursive subroutine


Also found in: Encyclopedia.

recursive subroutine

n
(Computer Science) computing a subroutine that can call itself as part of its execution
References in periodicals archive ?
RECURSIVE SUBROUTINE range-integrate(comm,f,t_want,t_got,y_got, yderiv_got,flag) TYPE(rk_comm), INTENT(INOUT) :: comm INTERFACE FUNCTION f(t,y) type (independent variable), INTENT(IN) :: t type(dependent variable), dimension, INTENT(IN) :: y type(dependent variable), dimension(y) :: f END FUNCTION f END INTERFACE type(independent variable), INTENT(IN) :: t_want type(independent variable), INTENT(OUT) :: t_got type(dependent variable), dimension, OPTIONAL, INTENT(OUT) :: y_got, & yderiv_got INTEGER, OPTIONAL, INTENT(OUT):: flag
RECURSIVE SUBROUTINE step_integrate(comm,f,t_now,y_now,yderiv_now,flag) TYPE(rk_comm), INTENT(INOUT) :: comm INTERFACE FUNCTION f(t,y) type (independent variable), INTENT(IN) :: t type(dependent variable), dimension, INTENT(IN) :: y type(dependent variable), dimension(y) :: f END FUNCTION f END INTERFACE type (independent variable), INTENT(OUT) now type(dependent variable), dimension, OPTIONAL, INTENT(OUT) y-now, & yderiv-now INTEGER, OPTIONAL, INTENT(OUT)) flag
On the other hand, programs with recursive subroutines may satisfy the constraints in Figure 7 but never those in Figure 11.
Full browser ?