-
Notifications
You must be signed in to change notification settings - Fork 0
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
Enable mass lumping for projection operator #115
Conversation
Still work to do to address the issues referenced above, but hopefully this is sufficient for your purposes @ddundo. |
Thanks very very much @jwallwork23! And sorry for the issues you raised - I tried to warn you about my incompetence in mesh-adaptation/goalie#128 (comment) :) This actually makes quite a significant difference in my case, which I didn't expect. I will bring it up on the next meeting :) |
TODO: Make sure project is the default, not interpolate. |
675d11a
to
5a787bd
Compare
Hopefully this is useful @ddundo! New |
All follows (Farrell et al., 2009). |
Thanks a lot for doing this @jwallwork23! Looks great from what you show here! I couldn't use it directly in my case because I have a vector field, so I tried to modify it by considering each component as a separate scalar field, but then didn't get very good results. So I assume something more sophisticated is necessary :) As a side note... I am also confused how tests pass for you here since you didn't merge the commit for #117 here... I had to do it locally. |
No worries - I had a long train journey and this was an interesting puzzle to solve during it.
Ah yes, the vector extension will have to come in a later PR I think. Shouldn't be too hard, though.
Hm yeah good point. Pass. |
I'll probably rename the |
Thanks a lot for this @jwallwork23! The problem with the colourbars is that the levels in
|
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 very much again for this! I just left minor comments :)
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.
Looks good! Sorry for nitpicking :)
Oh and I also ran the tests both on my local install and on the docker container, and tests pass for me. I also updated firedrake.
Thanks again @ddundo. Pushed a minor change that fixes the CI, not controversial. |
Closes #95.
This PR allows the projection operator (and its adjoint) to be mass lumped. For P1 spaces, this implies that extrema are preserved following the transfer.
While developing these changes, I noticed #113 and #114, so the associated functionality and tests are turned off here.