summaryrefslogtreecommitdiff
path: root/doc/source/f2py/code/scalar.f
diff options
context:
space:
mode:
Diffstat (limited to 'doc/source/f2py/code/scalar.f')
-rw-r--r--doc/source/f2py/code/scalar.f12
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/source/f2py/code/scalar.f b/doc/source/f2py/code/scalar.f
new file mode 100644
index 000000000..c22f639ed
--- /dev/null
+++ b/doc/source/f2py/code/scalar.f
@@ -0,0 +1,12 @@
+C FILE: SCALAR.F
+ SUBROUTINE FOO(A,B)
+ REAL*8 A, B
+Cf2py intent(in) a
+Cf2py intent(inout) b
+ PRINT*, " A=",A," B=",B
+ PRINT*, "INCREMENT A AND B"
+ A = A + 1D0
+ B = B + 1D0
+ PRINT*, "NEW A=",A," B=",B
+ END
+C END OF FILE SCALAR.F