source:
vendors/FCM-2017.10.0/test/repos/add_subroutine/hello.F90
@
11305
Last change on this file since 11305 was 10672, checked in by nicolasmartin, 5 years ago | |
---|---|
File size: 505 bytes |
Line | |
---|---|
1 | PROGRAM Hello |
2 | |
3 | #if !defined(LOCAL_STRING) |
4 | USE Hello_Constants, ONLY: hello_string |
5 | #endif |
6 | |
7 | IMPLICIT NONE |
8 | |
9 | #if defined(LOCAL_STRING) |
10 | CHARACTER (LEN=80), PARAMETER :: hello_string = 'Hello Mother Earth!' |
11 | #endif |
12 | |
13 | #if defined(CALL_HELLO_SUB) |
14 | INCLUDE 'hello_sub.interface' |
15 | #endif |
16 | INCLUDE 'hello_sub2.interface' |
17 | |
18 | CHARACTER (LEN=*), PARAMETER :: this = 'Hello' |
19 | |
20 | WRITE (*, '(A)') this // ': ' // TRIM (hello_string) |
21 | #if defined(CALL_HELLO_SUB) |
22 | CALL Hello_Sub (HUGE(0)) |
23 | #endif |
24 | CALL Hello_Sub2 () |
25 | |
26 | END PROGRAM Hello |
Note: See TracBrowser
for help on using the repository browser.