summaryrefslogtreecommitdiff
path: root/numpy/f2py/docs/usersguide/callback.f
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/f2py/docs/usersguide/callback.f')
-rw-r--r--numpy/f2py/docs/usersguide/callback.f12
1 files changed, 12 insertions, 0 deletions
diff --git a/numpy/f2py/docs/usersguide/callback.f b/numpy/f2py/docs/usersguide/callback.f
new file mode 100644
index 000000000..6e9bfb920
--- /dev/null
+++ b/numpy/f2py/docs/usersguide/callback.f
@@ -0,0 +1,12 @@
+C FILE: CALLBACK.F
+ SUBROUTINE FOO(FUN,R)
+ EXTERNAL FUN
+ INTEGER I
+ REAL*8 R
+Cf2py intent(out) r
+ R = 0D0
+ DO I=-5,5
+ R = R + FUN(I)
+ ENDDO
+ END
+C END OF FILE CALLBACK.F