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

Fix eqcoeff version number #495

Merged
merged 3 commits into from
Apr 3, 2024

Conversation

illorenzo7
Copy link
Contributor

Pull request #489 inadvertently broke the equation_coefficients file, and how it is interpreted by post_processing/rayleigh_diagnostics. I should have updated the version number from 1-->2 since I changed the number of constants from 10 to 11.

This pull request updates the version number, and also the rayleigh_diagnostics class to read in the equation_coefficients file. I verified it still works on old version=1 equation_coefficients files.

This pull request additionally addresses issue #491, since in version 2, "nconst" and "nfunc" are explicitly written into equation_coefficients.

Copy link
Contributor

@feathern feathern left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, but I have one small suggestion. Since for version 1, there is no 'dsdr_scale', shouldn't we delete it from the dictionary c_dict on read-in? Otherwise, I'm ready to approve.

@feathern
Copy link
Contributor

feathern commented Feb 29, 2024

Or, alternatively, we could set c11 to 1 for version 1. Then it won't rescale dsdr, if it's set. I think that might be the better route, actually.

Addresses Nick's comment about version number.
Copy link
Contributor

@feathern feathern left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great -- thanks for the small addition. Merging.

@feathern feathern merged commit be484ad into geodynamics:main Apr 3, 2024
7 checks passed
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