summaryrefslogtreecommitdiff
path: root/numpy/f2py/doc/multiarray/foo.f
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/f2py/doc/multiarray/foo.f')
-rw-r--r--numpy/f2py/doc/multiarray/foo.f13
1 files changed, 13 insertions, 0 deletions
diff --git a/numpy/f2py/doc/multiarray/foo.f b/numpy/f2py/doc/multiarray/foo.f
new file mode 100644
index 000000000..f8c39c4d1
--- /dev/null
+++ b/numpy/f2py/doc/multiarray/foo.f
@@ -0,0 +1,13 @@
+ subroutine foo(a,m,n)
+ integer a(m,n), m,n,i,j
+ print*, "F77:"
+ print*, "m=",m,", n=",n
+ do 100,i=1,m
+ print*, "Row ",i,":"
+ do 50,j=1,n
+ print*, "a(i=",i,",j=",j,") = ",a(i,j)
+ 50 continue
+ 100 continue
+ if (m*n.gt.0) a(1,1) = 77777
+ end
+