-
Notifications
You must be signed in to change notification settings - Fork 17
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
Have a GrudgeDOFArray
?
#347
Comments
Only other potential annoyance that's coming to mind is having to fish out the |
I think that applies only to very few operations (only divergence comes to mind). In most cases, I think we would just traverse the array container and then apply the operation to each entry separately, without ever figuring whether all entries agree on the same For the divergence, I think we will want all |
Hm, that sounds like a lot of wrapping. I imagine most things in From a quick grep in |
There's a lot of awkwardness in the grudge interface from having to repeatedly specify DOF descriptors (
DOFDesc
s). This is the case becauseDOFArray
s don't know the DOF descriptor with which they're associated. (They can't.DOFArray
s are defined in meshmode, and in order to make sense of a DOF descriptor, you need a catalog of discretizations, something like grudge'sDiscretizationCollection
.)The idea here is to fix that by introducing a grudge-specific subclass of the
DOFArray
that does have that information. This would declutter the interface a lot, in many places. There may be some aspects of easier-said-than-done here:DOFArray + GrudgeDOFArray
? (I'm thinking no.)GrudgeDOFArray
to a meshmode function? (This is still well-defined, since it'd be a subclass. But would meshmode be able to return aGrudgeDOFArray
? I'm thinking no. As a result, grudge users probably shouldn't be calling meshmode directly for anything, i.e. we'd possibly need some wrapper code. I don't know how wide-spread this would be.)grudge.op
was just in the process of asking users to explicitly specifyDOFDesc
s. We would effectively re-un-deprecate the "bare" versions and re-deprecate the explicit versions. We can keep those around for a while, they just need to check that if aGrudgeDOFArray
is passed in, itsDOFDesc
matches the passed parameter. This is mostly mechanical work, I think.Anyone opposed?
cc @MTCam @alexfikl @a-alveyblanc @lukeolson @majosm @anderson2981 @matthiasdiener
The text was updated successfully, but these errors were encountered: