1 2 3 4 5
program main use parent, only : child_function,grandchild_subroutine implicit none if (child_function()) call grandchild_subroutine end program