Skip to content
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

Checkpointing arbitrary tags #3328

Open
connorjward opened this issue Jan 15, 2024 · 0 comments
Open

Checkpointing arbitrary tags #3328

connorjward opened this issue Jan 15, 2024 · 0 comments

Comments

@connorjward
Copy link
Contributor

As discussed in #3310 (review), it should be feasible to design a modified interface to save_function such that arbitrary tags can be passed. I am suggesting this generalisation because changes are currently being proposed that would add 2 additional timestepping arguments to save_function (when one, idx, already exists). This leads to code duplication and a more complicated API. @ksagiyam and I feel like it should be possible to instead have an API like: save_function(func, **kwargs) where **kwargs represents arbitrary information to be stored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant