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

Handle the plotfile case where a derived variable has multiple components #758

Merged
merged 7 commits into from
Feb 11, 2020

Conversation

maxpkatz
Copy link
Member

@maxpkatz maxpkatz commented Feb 8, 2020

PR summary

In this case, the plotfile logic would only plot the first component of the derived
variable. Now, if a derived variable has multiple components, we plot all components.
The name of each is appended with an integer variable indicating which one it is.

This issue also exists in AMReX, where this plotfile code presumably originally came from.

PR checklist

  • test suite needs to be run on this PR
  • this PR will change answers in the test suite
  • all functions have docstrings as per the coding conventions
  • the CHANGES file has been updated
  • if appropriate, this change is described in the docs

…ents

In this case, the plotfile logic would only plot the first component of the derived
variable. Now, if a derived variable has multiple components, we plot all components.
The name of each is appended with an integer variable indicating which one it is.
@maxpkatz
Copy link
Member Author

maxpkatz commented Feb 8, 2020

The most common case affected by this will be the StateErr derived variable, which is part of the default set of Castro derives. Now each plotfile will have "StateErr_0", "StateErr_1", and "StateErr_2", so the regression suite will need to be updated.

@zingale
Copy link
Member

zingale commented Feb 11, 2020

the test suite never completes with this PR. The Detonation test has been running for ~12 hours. Going to kill it now.

@maxpkatz
Copy link
Member Author

Fixed a bug, I was accidentally trying to plot too many variables.

@zingale zingale merged commit ff16935 into development Feb 11, 2020
@zingale zingale deleted the derive_plot_vars_fix branch February 11, 2020 21:41
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