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

need help for f90warp command #146

Open
uturuncoglu opened this issue Apr 27, 2021 · 1 comment
Open

need help for f90warp command #146

uturuncoglu opened this issue Apr 27, 2021 · 1 comment

Comments

@uturuncoglu
Copy link

I just wonder about why f90warp creates only interfaces for certain subroutines. I am trying to create wrapper for following file

https://github.com/esmf-org/esmf/blob/develop/src/Superstructure/ESMFMod/src/ESMF_Init.F90

using f90wrap -m init ESMF_Init.F90 but it only creates interface for esmf_frameworkinternalinit. Maybe I am missing something in here and you could help me. BTW, I tried to provide other source codes that has type definitions for ESMF_CalKind_Flag and ESMF_LogKind_Flag but it is same.

Also, is there any way to create interface for just selected subroutines. I tired to use --only option (i.e. --only ESMF_Initialize) but I am getting following error in that case,

Traceback (most recent call last):
  File "/glade/u/home/turuncu/.local/bin/f90wrap", line 211, in main
    only = args.only.lower()
AttributeError: 'list' object has no attribute 'lower'
f90wrap: AttributeError("'list' object has no attribute 'lower'")
         for help use --help
@uturuncoglu
Copy link
Author

uturuncoglu commented Apr 27, 2021

Just to update the --only error can be fixed by replacing only = args.only.lower() with only = [o.lower() for o in args.only] but again it does not create interface for ESMF_Initialize call which I don't know why. Any hint can be helpful at this point.

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