-
Notifications
You must be signed in to change notification settings - Fork 160
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
Remove class-level caches from CheckpointFile #2810
Conversation
@ksagiyam this is failing the backwards compatibility tests due to mismatching SFs. Rather than expunging the caches as I do here should they be stored on the instance instead of the class? I find the code quite hard to follow. |
The
CheckpointFile instance (afile ), when we load a function space on meshB, which has already been loaded for meshA and cached, we end up grabbing the cached one. This causes conflict as meshA has pointSFA, the loaded function space inherits pointSFA, but meshB has poinSFB; though pointSFA and pointSFB are identical, they are different objects, which is what PETSc is complaining.
I think we can just use |
7d912a2
to
daf2a65
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.
Thanks, Connor!
Can we merge this? We are getting random fails in the link checker for the docs build which I'm certain is nothing to do with this PR. |
Blast. |
Fixes #2809 (and hopefully fixes CI).
Is it appropriate to provide a test for something non-deterministic like this?