forked from arthurBarthe/python-embedding
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.F
51 lines (36 loc) · 796 Bytes
/
main.F
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
SubRoutine PrintX(X, Nx)
Implicit None
Integer Nx
Real*8 X(*)
Integer I
Do I = 1, Nx
Write(6, *) I, X(I)
EndDo
Call Flush(6)
Return
End
Program Main
Implicit None
Integer Nx
Integer NY
Parameter(Nx = 1250)
Parameter(Ny = 100)
Real*8 X(Nx)
Real*8 Y(Ny)
Integer I
Do I = 1, Nx
X(I) = DBLE(I) / DBLE(100)
EndDo
Do I = 1, Ny
Y(I) = DBLE(0.)
EndDo
Call PrintX(X, 10)
Call PrintX(Y, 10)
Do I = 1, 10
Write(6, *)
Write(6, *) 'Loop: ', I
Call RunPy('testNN.py', 'my_testNN', X, Nx, Y, Ny)
Call PrintX(Y, 10)
EndDo
Call PyFinalize
End