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

Add HDF5 support through AbstractStorage #14

Merged
merged 4 commits into from
Jul 13, 2022
Merged

Add HDF5 support through AbstractStorage #14

merged 4 commits into from
Jul 13, 2022

Conversation

michel2323
Copy link
Member

@michel2323 michel2323 commented Jul 7, 2022

This adds an abstract AbstractStorage type where one can add storage management by providing a getindex and setindex! methods (at a minimum) of a derived struct.

Still a bit WIP. @sriharikrishna, we can go over it together. A breaking change is that one now has to provide the type as a parameter to the checkpointing constructor.

revolve = Revolve(steps, snaps; verbose=info)

becomes

revolve = Revolve{Heat}(steps, snaps; verbose=info)

I think this might also be useful when providing a custom store and restore. We can discuss...

@michel2323 michel2323 requested a review from sriharikrishna July 7, 2022 18:49
@sriharikrishna
Copy link
Collaborator

Should the tests pass first?

@michel2323
Copy link
Member Author

michel2323 commented Jul 8, 2022

Absolutely. The example in the docs is breaking. Will fix it.

@sriharikrishna sriharikrishna merged commit 5cbaaa9 into main Jul 13, 2022
@sriharikrishna sriharikrishna deleted the ms/storage branch July 13, 2022 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants