From 99f1e436666694f8087a28488f2a5ea2bb3897e8 Mon Sep 17 00:00:00 2001 From: Frank Malatino Date: Wed, 4 Sep 2024 14:25:18 -0400 Subject: [PATCH 1/2] Non-ideal fix for unreachable scalar variables, specifically in stencils/corners.py::fill_corners_dgrid_defn --- ndsl/stencils/corners.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ndsl/stencils/corners.py b/ndsl/stencils/corners.py index d83cfac..8e1b5a7 100644 --- a/ndsl/stencils/corners.py +++ b/ndsl/stencils/corners.py @@ -1003,6 +1003,7 @@ def fill_corners_dgrid_defn( with computation(PARALLEL), interval(...): # this line of code is used to fix the missing symbol crash due to the node visitor depth limitation acoef = mysign + x_out = x_in # sw corner with horizontal(region[i_start - 1, j_start - 1]): x_out = mysign * y_in[0, 1, 0] From e3cca7cc2458617dea5dd300cafbfe4f321f1926 Mon Sep 17 00:00:00 2001 From: Frank Malatino Date: Thu, 5 Sep 2024 14:13:44 -0400 Subject: [PATCH 2/2] Amended method fill_corners_dgrid_defn to use x_out = x_out instead of x_out = x_in --- ndsl/stencils/corners.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ndsl/stencils/corners.py b/ndsl/stencils/corners.py index 8e1b5a7..5eb7767 100644 --- a/ndsl/stencils/corners.py +++ b/ndsl/stencils/corners.py @@ -1003,7 +1003,7 @@ def fill_corners_dgrid_defn( with computation(PARALLEL), interval(...): # this line of code is used to fix the missing symbol crash due to the node visitor depth limitation acoef = mysign - x_out = x_in + x_out = x_out # sw corner with horizontal(region[i_start - 1, j_start - 1]): x_out = mysign * y_in[0, 1, 0]