-
Notifications
You must be signed in to change notification settings - Fork 22
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
Modal / nodal tracking #258
Comments
Would it work to introduce some subclassses
|
I agree that using type annotations to check this statically would be appealing.
|
What's the usecase for mixing modal and nodal values in the same Also, if it's a per-group decision, what would passing a mixed
Oh yeah, that would be very cool to check somehow! |
There's no use case at all! :) I'm not arguing it's a good idea. I'm just saying that, right now, it's each group's decision to say what the DOFs mean. What I'm saying is that enforcing homogeneity in one specific characteristic (modal vs nodal) would require fairly awkward checking logic, and on top of that, it would fall short of quite a few other things that more general and less awkward logic could check. That's why I'm pushing for per-group/discr-key-based logic. |
Ah, got it now! Would this be optional? What I'm thinking of is: e.g., pytential has that granularity stuff that doesn't correspond to the degrees of freedom of any existing group. |
Oof, you're right. I mean, in principle it would be easy to make up some unique "discretization keys" for those cases, too. But given that concern, I think I agree that we would likely phase that in gradually, by deprecating the case where no discretization keys are supplied. |
Right now, it's possible to feed modal data to things that expect nodal data and vice versa. Everything is just a bunch of numbers in a
DOFArray
. Especially if @thomasgibson's entropy-stable work manages to stick, this will be a persistent source of user error. We should perhaps have theDOFArray
remember thediscretization_key
for each group and check those on input to make sure they're as expected.The text was updated successfully, but these errors were encountered: