jameskermode/f90wrap

`integer, value, intent(in)`/`integer, value` arguments converted to/wrapped as `real`

MichaelSt98 opened this issue · 0 comments

integer, value, intent(in)/integer, value arguments converted to/wrapped as real

test.f90:

module test_mod
    implicit none
contains
    subroutine foo(a, some_var, another_var):
        integer, value, intent(in) :: a
        integer, value :: some_var
        integer, intent(in) :: another_var
    end subroutine foo
end module test_mod
  • f90wrap test.f90 gives me:

f90wrap_test.f90:

! Module test_mod defined in file test.f90

subroutine f90wrap_foo(a, some_var, another_var)
    use test_mod, only: foo
    implicit none
    
    real :: a
    real :: some_var
    integer, intent(in) :: another_var
    call foo(a=a, some_var=some_var, another_var=another_var)
end subroutine f90wrap_foo

! End of module test_mod defined in file test.f90

Python 3.10.6

Package Version


f90wrap 0.2.9
numpy 1.23.5
pip 22.2.1
setuptools 63.2.0