LLNL / shroud

Shroud: generate Fortran and Python wrappers for C and C++ libraries
BSD 3-Clause "New" or "Revised" License
90 stars 7 forks source link

Define fmt.f_module_name #373

Closed ltaylor16 closed 2 months ago

ltaylor16 commented 2 months ago

This is used in statements as

        "f_module": {
            "{f_module_name}": [
                "{f_kind}"
            ]
        },

Change statments groups to use {f_module_name} instead of {typemap.f_module_name} to allow a default module name to be detected and avoid adding USE statement. For example, with CHARACTER arguments which do not use C_CHAR in the Fortran argument declaration.

This allows several groups to be removed: f_mixin_declare-fortran-arg-no-module, f_mixin_declare-fortran-result-no-module and f_mixin_kind-argument.