test_callback

Module Contents

class TestF77Callback

Bases:util.F2PyTest

code = subroutine t(fun,a) integer a
cf2py intent(out) a

external fun call fun(a) end

subroutine func(a)

cf2py intent(in,out) a

integer a a = a + 11 end

subroutine func0(a)

cf2py intent(out) a

integer a a = 11 end

subroutine t2(a)

cf2py intent(callback) fun
integer a
cf2py intent(out) a

external fun call fun(a) end

subroutine string_callback(callback, a) external callback double precision callback double precision a character*1 r

cf2py intent(out) a
r = ‘r’ a = callback(r) end
test_all(self)
test_docstring(self)
check_function(self, name)
test_string_callback(self)