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

Minor bikeshedding #10

Closed
ranocha opened this issue Jun 7, 2023 · 1 comment · Fixed by #19
Closed

Minor bikeshedding #10

ranocha opened this issue Jun 7, 2023 · 1 comment · Fixed by #19

Comments

@ranocha
Copy link
Collaborator

ranocha commented Jun 7, 2023

I found it helpful to return NamedTuples instead of separating values and names. For example, you could return a NamedTuple from integrals(analysis_callback), e.g.,

integrals(analysis_callback) = (waterheight_total = first_vector, velocity = second_vector, entropy=  third_vector)

Then, you can iterate over the pairs(integrals(analysis_callback)) for plotting

It's just an idea - your current setup works fine of course

@JoshuaLampert
Copy link
Owner

Sounds reasonable. Will do that later.

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 a pull request may close this issue.

2 participants