- 
                Notifications
    
You must be signed in to change notification settings  - Fork 174
 
FunctionSpace: pass kwargs to finat.ufl.FiniteElement #4607
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
base: main
Are you sure you want to change the base?
Conversation
e464470    to
    3786c62      
    Compare
  
    | 
           We got an unrelated failure in parallel (no variants involved), maybe that's random. I'll rerun CI  | 
    
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.
Now that we know that some in the team don't like **kwargs too much I think we should let them review this. Personally I think this is fine since it means we won't need to change a bunch of functions every time a new option is added to the finite element constructor.
It would also be good for these to have type hints as there currently appears to be no type information for all of these very public functions.
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.
I know it's a pain but I think that these functions really need to have type hints. There is no way that a user is going to know what should be passed as quad_scheme.
          
 I think this is the right place to open a discussion with @rckirby, @dham, @leo-collins, and anyone else who cares about FunctionSpaces that just hold data at points, or changing the quadrature rules in the degrees of freedom. For  
 Elements with degrees of freedom on facets of different dimension cannot really use a fixed  Currently, we can pass   | 
    
Description
This enables
variantandquad_schemeto be passed on to finat direclty from theFunctionSpaceconstructor.I don't think that tests for
quad_schemeare necessary at this point, as we already have tests forvariant.