Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
MichaelSt98 opened this issue Nov 29, 2022 · 0 comments

Comments

@MichaelSt98
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant