Skip to content

Commit

Permalink
Changed mysign in fill_corners_dgrid_def to external variable
Browse files Browse the repository at this point in the history
  • Loading branch information
fmalatino committed Jun 12, 2024
1 parent e2bd82f commit 50c8bc7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions ndsl/dsl/stencil.py
Original file line number Diff line number Diff line change
Expand Up @@ -763,6 +763,7 @@ def axis_offsets(
"local_js": gtscript.J[0] + self.jsc - origin[1],
"j_end": j_end,
"local_je": gtscript.J[-1] + self.jec - origin[1] - domain[1] + 1,
"mysign": -1.0,
}

def get_origin_domain(
Expand Down
3 changes: 1 addition & 2 deletions ndsl/stencils/corners.py
Original file line number Diff line number Diff line change
Expand Up @@ -989,7 +989,6 @@ def fill_corners_dgrid_defn(
x_out: FloatField,
y_in: FloatField,
y_out: FloatField,
mysign: float,
):
"""
Args:
Expand All @@ -998,7 +997,7 @@ def fill_corners_dgrid_defn(
y_in (in):
y_out (inout):
"""
from __externals__ import i_end, i_start, j_end, j_start
from __externals__ import mysign, i_end, i_start, j_end, j_start

with computation(PARALLEL), interval(...):
# sw corner
Expand Down

0 comments on commit 50c8bc7

Please sign in to comment.