-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes to test configurations options and externals for parsing #53
Changes to test configurations options and externals for parsing #53
Conversation
@@ -370,7 +370,7 @@ def generate_parallel_stencil_tests(metafunc, *, backend: str): | |||
|
|||
|
|||
def get_communicator(comm, layout, topology_mode): | |||
if (MPI.COMM_WORLD.Get_size() > 1) and (topology_mode == "doubly-periodic"): | |||
if (MPI.COMM_WORLD.Get_size() > 1) and (topology_mode == "cubed-sphere"): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change will definitely make a big difference!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was a bug I introduce in the PR right before
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Revert the mysign
Revert the gt4py
and dace
changes it's out of PR
ndsl/dsl/stencil.py
Outdated
@@ -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, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is too aggressive as a fix. The axis_offsets
function shouldn't carry the mysign issue.
@@ -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 i_end, i_start, j_end, j_start, mysign |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pass it as a default externals or directly a scalar, since never changes in our code
@@ -370,7 +370,7 @@ def generate_parallel_stencil_tests(metafunc, *, backend: str): | |||
|
|||
|
|||
def get_communicator(comm, layout, topology_mode): | |||
if (MPI.COMM_WORLD.Get_size() > 1) and (topology_mode == "doubly-periodic"): | |||
if (MPI.COMM_WORLD.Get_size() > 1) and (topology_mode == "cubed-sphere"): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was a bug I introduce in the PR right before
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
This will have downstream effect on pyFV3
due to the external change. The mysign
change has been approved by me. It's only used like this and therefore should be explicit .
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Can you put an issue in PyFV3 to propagate the change to fill_corners_dgrid_defn
there once this is merged?
Description
Conditional statement in
stencils/testing/test_translate.py
changed to check forcompute
passed via the--grid
pytest option.Switched conditional statement in
ndsl/stencils/testing/conftest.py
to check for option ofcubed-sphere
selectionMade
mysign
parameter offill_corners_dgrid_defn
an external variableResolves Issue 52
How Has This Been Tested?
Tested in
pyFV3
andpySHiELD
translate tests github workflow.Checklist: