-
Notifications
You must be signed in to change notification settings - Fork 169
Fix multigrid caches #4511
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?
Fix multigrid caches #4511
Conversation
2e52374
to
f8447ce
Compare
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.
Please add tests.
a4f0728
to
22c1a81
Compare
Please fix |
w1 = StandaloneInterpolationMatrix.work_function(V1) | ||
w2 = StandaloneInterpolationMatrix.work_function(V2) | ||
assert w1 is w2 |
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.
This make me wonder if we should implement restore()
method to keep track of if the work_function
is in_use
or not, but it's not the scope of this PR.
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.
Should we also look at FunctionSpace.get_work_function()
?
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.
That's probably better as they already have restore
method.
Co-authored-by: ksagiyam <[email protected]>
Description