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 option to store the primal and derivative struct of all loop iterations #30

Closed
michel2323 opened this issue Jun 2, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@michel2323
Copy link
Member

michel2323 commented Jun 2, 2023

@swilliamson7 mentioned the need to store intermediate derivatives to disk, which should be easy to add.

What about a store_intermediates option in the constructor like this?

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

The user might want more granular control over what timesteps should be stored. We can add an interval or a list of timesteps. And a function to enable and disable it. Per default, the filenames would be named after the struct that is stored and the iteration counter.

store_intermediates(revolve, true)
@michel2323 michel2323 added the enhancement New feature or request label Jun 2, 2023
@michel2323
Copy link
Member Author

Added with #31 and #32 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants