Debian Codegraph @

loki/tests/sources/projBatch/module/t_mod.F90

raw
1 module t_mod
2 use tt_mod, only: tt, intf, proc
3 use a_mod, only: a
4 implicit none
5
6 integer, parameter :: nt1 = 10
7
8 type t1
9 contains
10 procedure :: way => my_way
11 end type t1
12
13 type t
14 type(tt) :: yay
15 type(t1) :: no(nt1)
16 contains
17 procedure :: proc => t_proc
18 end type t
19 contains
20 subroutine t_proc(this)
21 class(t), intent(inout) :: this
22 call a(this%yay%other)
23 call this%yay%proc()
24 end subroutine t_proc
25
26 recursive subroutine my_way(this, recurse)
27 class(t1), intent(inout) :: this
28 logical, intent(in) :: recurse
29 if (recurse) call this%way(.false.)
30 end subroutine my_way
31 end module t_mod