-
Notifications
You must be signed in to change notification settings - Fork 112
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
Add warning about polynomial degree 0 #1863
Conversation
Review checklistThis checklist is meant to assist creators of PRs (to let them know what reviewers will typically look for) and reviewers (to guide them in a structured review process). Items do not need to be checked explicitly for a PR to be eligible for merging. Purpose and scope
Code quality
Documentation
Testing
Performance
Verification
Created with ❤️ by the Trixi.jl community. |
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.
Thanks!
Would there be an easy way to catch such a setting early and warn users?
That would be a bit difficult since it depends on the solver
and the mesh
. The only safe way would be to add a check to inner constructors of our semidiscretizations (hyperbolic and parabolic) - some kind of check_consistency(mesh, equations, solver)
or so. Then, this check could print a warning for polydeg = 0
on the other mesh types.
Would we want to have such checks? What is our policy in regard to user assistance? |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1863 +/- ##
==========================================
- Coverage 96.30% 96.30% -0.00%
==========================================
Files 438 438
Lines 35577 35603 +26
==========================================
+ Hits 34259 34284 +25
- Misses 1318 1319 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
I would be fine having such a check. Right now, we just check that the dimensions fit
What about the other core devs, e.g., @trixi-framework/principal-developers? |
Intuitively, I am not a big fan. One would have to add mesh-specific checks to the semidiscretization, which I don't think is good practice regarding modularity and extensibility. |
Good point. |
I was misled by a comment in basis_lobatto_legendre.jl, thinking
polydeg = 0
would be an exceptional but valid setting. It however only works with TreeMesh. See #1489So I extended the comment.
Would there be an easy way to catch such a setting early and warn users?