File: subroutine2.f90

package info (click to toggle)
lfortran 0.59.0-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 56,736 kB
  • sloc: cpp: 168,052; f90: 74,272; python: 17,537; ansic: 7,705; yacc: 2,345; sh: 1,334; fortran: 895; makefile: 37; javascript: 15
file content (76 lines) | stat: -rw-r--r-- 931 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
subroutine g
x = y
x = 2*y
end subroutine

subroutine g
x = y

x = 2*y
end subroutine

subroutine g

    x = y


    x = 2*y



end subroutine

subroutine g
x = y
;;;;;; ; ; ;
x = 2*y
end subroutine

subroutine g
x = y;
x = 2*y;
end subroutine

subroutine g
x = y; ;
x = 2*y;; ;
end subroutine

subroutine g; x = y; x = 2*y; end subroutine

subroutine f
subroutine = y
x = 2*subroutine
end subroutine

subroutine f
integer :: x
end subroutine

subroutine f()
integer :: x
end subroutine

subroutine f(a, b, c, d)
integer, intent(in) :: a, b
integer, intent ( in ) :: c, d
integer :: z
integer::y
end subroutine

subroutine f(a, b, c, d)
integer, intent(out) :: a, b
integer, intent(in out) :: c, d
integer :: z
integer::y
end subroutine

subroutine saxpy(n, a, x, y)
real(dp), intent(in) :: x(:), a
real(dp), intent(inout) :: y(:)
integer, intent(in) :: n
integer :: i
do i = 1, n
    y(i) = a*x(i)+y(i)
enddo
end subroutine saxpy