source:
vendors/t/fcm-make/02-build-ext-iface/src/m1.f90
@
10669
Last change on this file since 10669 was 10669, checked in by nicolasmartin, 5 years ago | |
---|---|
File size: 498 bytes |
Line | |
---|---|
1 | ! A module with nonsense |
2 | module bar |
3 | type food |
4 | integer :: cooking_method |
5 | end type food |
6 | type organic |
7 | integer :: growing_method |
8 | end type organic |
9 | integer, parameter :: i_am_dim = 10 |
10 | end module bar |
11 | |
12 | ! A module with more nonsense |
13 | module foo |
14 | use bar, only: FOOD |
15 | integer :: foo_int |
16 | contains |
17 | subroutine foo_sub(egg) |
18 | integer, parameter :: egg_dim = 10 |
19 | type(Food), intent(in) :: egg |
20 | write(*, *) egg |
21 | end subroutine foo_sub |
22 | elemental function foo_func() result(f) |
23 | integer :: f |
24 | f = 0 |
25 | end function |
26 | end module foo |
Note: See TracBrowser
for help on using the repository browser.