Skip to content
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

compiler: Fix subdim argument mismatch #2019

Merged
merged 3 commits into from
Oct 18, 2022
Merged

compiler: Fix subdim argument mismatch #2019

merged 3 commits into from
Oct 18, 2022

Conversation

mloubout
Copy link
Contributor

On top of #2018

Fix a small corner case where you can end with something like [nt, frozenset{nt, nt+1, ...}] needing to be reduced/unique'ed with subdimensions and apply overrides.

@codecov
Copy link

codecov bot commented Oct 12, 2022

Codecov Report

Merging #2019 (651e12c) into master (936a80f) will decrease coverage by 0.00%.
The diff coverage is 92.30%.

@@            Coverage Diff             @@
##           master    #2019      +/-   ##
==========================================
- Coverage   87.78%   87.78%   -0.01%     
==========================================
  Files         214      214              
  Lines       37017    37039      +22     
  Branches     5573     5577       +4     
==========================================
+ Hits        32496    32515      +19     
- Misses       4000     4003       +3     
  Partials      521      521              
Impacted Files Coverage Δ
devito/operator/operator.py 91.00% <ø> (ø)
devito/symbolics/printer.py 83.20% <ø> (-0.27%) ⬇️
devito/tools/data_structures.py 68.24% <60.00%> (-0.25%) ⬇️
tests/test_dimension.py 100.00% <100.00%> (ø)
devito/ir/support/basic.py 91.98% <0.00%> (-0.22%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Contributor

@FabioLuporini FabioLuporini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

basically no objections here, just minor comments

tests/test_dimension.py Show resolved Hide resolved
devito/tools/data_structures.py Outdated Show resolved Hide resolved
@FabioLuporini FabioLuporini changed the title compiler: Fix subdim arguemnt mismatch compiler: Fix subdim argument mismatch Oct 13, 2022
@mloubout mloubout force-pushed the fix-subdim-mismatch branch 3 times, most recently from f79c01a to af3d517 Compare October 13, 2022 14:12
Copy link
Contributor

@FabioLuporini FabioLuporini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks

@mloubout mloubout force-pushed the fix-subdim-mismatch branch 3 times, most recently from e96aec7 to 8385cf1 Compare October 18, 2022 08:10
@mloubout mloubout force-pushed the fix-subdim-mismatch branch from 8385cf1 to 651e12c Compare October 18, 2022 08:46
Comment on lines -644 to -645
"""
Generate C code.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would keep this

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mloubout mloubout merged commit 66b0ce7 into master Oct 18, 2022
@mloubout mloubout deleted the fix-subdim-mismatch branch October 18, 2022 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants