-
Notifications
You must be signed in to change notification settings - Fork 229
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: Patch symbolic coefficients over cross derivatives #2248
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2248 +/- ##
==========================================
+ Coverage 86.88% 86.90% +0.02%
==========================================
Files 229 229
Lines 41691 41759 +68
Branches 7696 7703 +7
==========================================
+ Hits 36223 36292 +69
- Misses 4839 4840 +1
+ Partials 629 627 -2
|
@@ -22,7 +22,7 @@ def test_backward_dt2(self): | |||
assert_structure(op, ['t,x,y'], 't,x,y') | |||
|
|||
|
|||
class TestSymbolicCoefficients(object): | |||
class TestSymbolicCoeffs(object): |
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.
Think we should also test the case where different coefficients are passed for x and y derivatives with cross-derivatives, mixed derivatives, and non-perfect mixed derivatives. Also the case where only one of the x or y derivatives gets coefficients specified but bother are defined as symbolic.
Operator(Eq(u, u.dx.dx, coefficients=coeffs), opt=opt).cfunction | ||
|
||
# Non-perfect mixed derivative | ||
Operator(Eq(u, (u.dx + v.dx).dx, coefficients=coeffs), opt=opt).cfunction |
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.
Need to sanity check these outputs. Print them and you will see that no errors are raised currently, but the resultant stencils are incorrect
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.
Looks good, should tide things over
…tom coefficients with nested expressions
No description provided.