forked from wangsl/python-embedding
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrunpy.F
More file actions
28 lines (20 loc) · 644 Bytes
/
runpy.F
File metadata and controls
28 lines (20 loc) · 644 Bytes
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
Subroutine RunPy(PyScript, PyFunction, X, Nx, Y, Ny)
Implicit None
Character*(*) PyScript, PyFunction
Real*8 X(*)
Real*8 Y(*)
Integer Nx
Integer Ny
Integer I, Len, LinEnd
External LinEnd
Integer LenPyScript, LenPyFunction
LenPyScript = LinEnd(PyScript)
If(PyScript(LenPyScript-2:LenPyScript) .eq. '.py')
$ LenPyScript = LenPyScript-3
LenPyFunction = LinEnd(PyFunction)
Call Flush
Call PyTest(PyScript, LenPyScript,
$ PyFunction, LenPyFunction,
$ X, Nx, Y, Ny)
Return
End