Skip to content

Hoisting arrays with kind specifiers imported from a module doesn't hoist the import statement HoistLocalArraysTrans #2667

Description

@LonelyCat124

In this code

module my_mod
   ...
   contains
subroutine my_sub(...)
   use realtype, only: my_real
   real(kind = my_real), allocatable, dimension(:,:) :: my_array
end subroutine
end module

When the my_array is hoisted to the module in the transformation scripts (using HoistLocalArraysTrans) the my_real declaration isn't hoisted into the module, so the code doesn't compile.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Cat-BIssues relating to processing of 'Category B' codes in the NG-Arch project.NEMOIssue relates to the NEMO domainNG-ARCHIssues relevant to the GPU parallelisation of LFRic and other models expected to be used in NG-ARCHbugsocrates

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions