-
Notifications
You must be signed in to change notification settings - Fork 11
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
Allow use of SUPG for mixed function spaces #579
base: main
Are you sure you want to change the base?
Conversation
self.wrapper.setup(field_name) | ||
new_test = self.wrapper.test | ||
self.residual = self.residual.label_map( | ||
lambda t: t.get(prognostic) == field_name and t.has_label(transport), |
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.
can we change this so that we are testing whether the label is not time_derivative
? I think it's better if the time discretisation to not know what terms it contains
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.
If we apply it to the momentum eq, then it will try to replace the test function for all terms with u in, which will be problematic..
Currently SUPG does not work for mixed function spaces. Here I have allowed for the altering of multiple test functions.
Note that MixedFSWrapper is not used, as altering a single test function in the tuple of test functions for a MixedFunctionSpace was difficult to do.
There is scope in future to not use SUPG as a wrapper, but this is not addressed in this pull request.