f90wrap icon indicating copy to clipboard operation
f90wrap copied to clipboard

Use all modules when using --only

Open rmchurch opened this issue 4 years ago • 1 comments
trafficstars

I am using the --only keyword to specify specific procedures to include, but looking through f90wrap script, I see that only the modules which correspond to those procedures are kept. Seems reasonable, but I have a module which has definitions in it, no procedures, that I want to include, but it gets kicked out of kept_mods. Many of the procedures I specify in --only pull in this module with use, but for some reason the module isn't added back into kept_mods with the find_referenced_modules. Is there a better way to specify to keep this module in the wrapping? As a workaround I am manually debugging f90wrap, and adding in the missing module to kept_mods, which of course is less than ideal.

rmchurch avatar Apr 02 '21 14:04 rmchurch

I don't think there's a workaround for this problem at the moment. Perhaps we could add a --keep option to explicitly add some modules back in, or generalise --only to allow entire module names to be included? A PR that did either of these would be welcome.

jameskermode avatar Apr 06 '21 08:04 jameskermode