-
Notifications
You must be signed in to change notification settings - Fork 10
Better torus support for mean cell area etc. #848
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
Merged
Merged
Changes from 60 commits
Commits
Show all changes
73 commits
Select commit
Hold shift + click to select a range
caf2565
Add try_attribute member function to GridFile to allow retrieving opt…
msimberg 643829b
Fix typos in a few docstrings and comments
msimberg 4b0327c
Refactor global grid params to handle torus/sphere in a more structur…
msimberg 4113218
Add more info grid type error message
msimberg 2df94eb
Add more tests for global grid parameters
msimberg 32f322e
Shorten GridSubdivisionParams to GridSubdivision
msimberg 3dc0152
Remove compute_torus_num_cells, for now
msimberg 3958306
Remove todos and debug print statements
msimberg f4bdfc3
Rename GridType helper class to GridParams
msimberg c05d469
Slightly simplify reading geometry_type from grid
msimberg 21c6785
Remove useless comment
msimberg 409ceeb
Merge remote-tracking branch 'origin/main' into better-torus-support
msimberg f87f5d9
More consistent error strings for grid params
msimberg 04025bd
Fix check for torus root/level values
msimberg bd08cbb
Add more tests for grid params
msimberg 9cf6b5d
Fix missing rename
msimberg 6e96aee
Add geometry_type property to GlobalGridParams
msimberg 667c38c
Merge remote-tracking branch 'origin/main' into better-torus-support
msimberg 8c6d92c
Simplify GridParams setup and validation (make stronger assumptions)
msimberg 471ba0a
Remove incorrect test
msimberg 20b0735
Update model/common/src/icon4py/model/common/grid/icon.py
msimberg 66c31e4
Apply suggestion from @msimberg
msimberg 27b7cba
Use more appropriate type for fallback case matching on geometry types
msimberg 1c31e16
Rename GridParams to GridShape
msimberg 35e4a11
Remove custom GlobalGridParams __init__
msimberg d3e1bd0
Merge remote-tracking branch 'origin/main' into better-torus-support
msimberg b940c27
Remove from_mean_cell_area constructor
msimberg 5816b44
Merge remote-tracking branch 'origin/main' into better-torus-support-2
msimberg 8edfafc
Add tests for global grid parameters with real grid files
msimberg f295c3f
Keep separately track of number of cells and global number of cells
msimberg f6f0ce8
Use grid file mean cell area or value computed from geometry if possible
msimberg 995d822
Simplify GlobalGridParams construction and cached properties
msimberg ac84e00
num_cells and mean_cell_area can't be None anymore in GlobalGridParams
msimberg c68c183
Regroup GlobalGridParams attributes more logically
msimberg b4d73a8
Merge remote-tracking branch 'msimberg/better-torus-support-2' into b…
msimberg fbc91d6
Merge remote-tracking branch 'origin/main' into better-torus-support-3
msimberg a8e9044
Fix import in test_icon.py
msimberg 48207b0
Minor globalgridparams fixes
msimberg 7396648
Update globalgridparams tests
msimberg b05cc3d
Fix minor typos in grid definitions
msimberg 4879d3a
Read more (optional) MPI-M grid properties into GlobalGridParameters
msimberg 628de75
Make GlobalGridParams frozen kw_only data class
msimberg 6d316bb
Add TODO for GlobalGridParams
msimberg c8eea7b
Add factory for GlobalGridParams that computes meann cell area
msimberg 38680c7
Read EDGE_LENGTH and DUAL_EDGE_LENGTH from grid file
msimberg 5e7eefc
Remove useless comment
msimberg a7f8dea
Fix and update GlobalGridParams tests
msimberg 19256ce
Expand GlobalGridParams tests with real grids (check all properties)
msimberg 8c484a6
Remove debug prints
msimberg c9dbdb3
Fix test_grid_manager_grid_level_and_root test
msimberg e597f64
Merge remote-tracking branch 'origin/main' into better-torus-support-3
msimberg 0891271
Update model/common/src/icon4py/model/common/grid/icon.py
msimberg f75a552
Update global grid params tests
msimberg fda6768
Fix type annotation in GlobalGridParams
msimberg 71e6d69
Use approximate comparisons for global grid parameters
msimberg 4852673
Only use precomputed EDGE_LENGTH and DUAL_EDGE_LENGTH fields
msimberg 6dec71b
Remove TODOs
msimberg b6d6121
Increase common-integration timelimit in ci from 30 to 35 minutes
msimberg 718ed0a
Merge remote-tracking branch 'origin/main' into better-torus-support-3
msimberg 75313b6
Increase common/integration test time limit in CI
msimberg a886952
Fix bug reading dual cell areas in grid manager
msimberg c986803
Make sure mean quantities are scalars instead of arrays in global gri…
msimberg 3320813
Add TODO for moving mean quantities computation to GridGeometry
msimberg a236f1f
Increase dace tests timelimit in CI
msimberg 9c9857a
Slightly increase rbf cell interpolation test tolerance due to change…
msimberg a21bf4b
Add missing experiment fixture to rbf tests
msimberg 581f465
Fix formatting
msimberg bdd5bcb
Merge remote-tracking branch 'origin/main' into better-torus-support-3
msimberg 4e8786e
Merge remote-tracking branch 'origin/main' into better-torus-support-3
msimberg 8875e0f
Re-remove edge length provider (read from grid file instead)
msimberg 3c12735
Expand GlobalGridParams construction tests
msimberg 47687a4
Add GlobalGridParams.from_fields tests
msimberg a75b0a1
Format files
msimberg 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Uh oh!
There was an error while loading. Please reload this page.