-
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
Merged
fmalatino
merged 11 commits into
NOAA-GFDL:develop
from
fmalatino:fix/computegridoption
Jun 20, 2024
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
164120b
Changed conditional statement to check for compute option in test_tra…
fmalatino a8e58e6
Linting
fmalatino 170e47a
Updating submodules
fmalatino 94b1079
Updating dace
fmalatino 6999653
Changed get_communicator conditional to check for cubed-sphere
fmalatino e2bd82f
Changed get_communicator topology selection conditional
fmalatino 50c8bc7
Changed mysign in fill_corners_dgrid_def to external variable
fmalatino 7db441a
Linting
fmalatino ad6c500
Rolling back dace and gt4py
fmalatino 2a5c9f4
Removing mysign from axis_offsets
fmalatino fc21a7d
Merge branch 'develop' into fix/computegridoption
fmalatino File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -79,8 +79,8 @@ def pytest_addoption(parser): | |
parser.addoption( | ||
"--topology", | ||
action="store", | ||
default="cube-sphere", | ||
help='Topology of the grid. "cube-sphere" means a 6-faced grid, "doubly-periodic" means a 1 tile grid. Default to "cube-sphere".', | ||
default="cubed-sphere", | ||
help='Topology of the grid. "cubed-sphere" means a 6-faced grid, "doubly-periodic" means a 1 tile grid. Default to "cubed-sphere".', | ||
) | ||
|
||
|
||
|
@@ -189,7 +189,7 @@ def get_ranks(metafunc, layout): | |
if only_rank is None: | ||
if topology == "doubly-periodic": | ||
total_ranks = layout[0] * layout[1] | ||
elif topology == "cube-sphere": | ||
elif topology == "cubed-sphere": | ||
total_ranks = 6 * layout[0] * layout[1] | ||
else: | ||
raise NotImplementedError(f"Topology {topology} is unknown.") | ||
|
@@ -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 commentThe 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 commentThe reason will be displayed to describe this comment to others. Learn more. This was a bug I introduce in the PR right before |
||
partitioner = CubedSpherePartitioner(TilePartitioner(layout)) | ||
communicator = CubedSphereCommunicator(comm, partitioner) | ||
else: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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