Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ecmwf-ifs/loki
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1987b85ebfbcd275dc9444641cbdd0d2e1ee5679
Choose a base ref
..
head repository: ecmwf-ifs/loki
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 657550c2b0104d7bfa51a661d404414daae0a614
Choose a head ref
Showing with 4 additions and 2 deletions.
  1. +4 −2 loki/transformations/extract/outline.py
6 changes: 4 additions & 2 deletions loki/transformations/extract/outline.py
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@
)
from loki.logging import info
from loki.subroutine import Subroutine
from loki.tools import as_tuple, CaseInsensitiveDict
from loki.tools import as_tuple
from loki.types import BasicType, DerivedType


@@ -72,7 +72,9 @@ def outline_region(region, name, imports, intent_map=None):
imports = as_tuple(imports)
imported_symbols = {var for imp in imports for var in imp.symbols}
# Special-case for IFS-style C-imports
imported_symbols |= {str(imp.module).split('.')[0] for imp in imports if imp.c_import}
imported_symbols |= {
str(imp.module).split('.', maxsplit=1)[0] for imp in imports if imp.c_import
}

# Create the external subroutine containing the routine's imports and the region's body
spec = Section(body=imports)