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: Improve robustness of dspace derivation #2238

Merged
merged 2 commits into from
Oct 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions devito/finite_differences/differentiable.py
Original file line number Diff line number Diff line change
Expand Up @@ -711,6 +711,7 @@ def _evaluate(self, **kwargs):
return expr


# SymPy args ordering is the same for Derivatives and IndexDerivatives
ordering_of_classes.insert(ordering_of_classes.index('Derivative') + 1,
'IndexDerivative')

Expand Down
2 changes: 1 addition & 1 deletion devito/ir/clusters/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ def dspace(self):

# Special case: if the factor of a ConditionalDimension has value 1,
# then we can safely resort to the parent's Interval
key = lambda d: d.is_Conditional and d.factor == 1
key = lambda d: d.is_Conditional and d.condition is None and d.factor == 1
intervals = intervals.promote(key)

parts[f] = intervals
Expand Down
Loading