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

Initial attempt of setting default constituent value. #226

Merged
merged 14 commits into from
Aug 23, 2023

Conversation

mwaxmonsky
Copy link
Collaborator

@mwaxmonsky mwaxmonsky commented Jul 13, 2023

New implementation will attept to find constituent value from file, otherwise will default to value declared in meta files, otherwise 0.

Copy link
Collaborator

@nusbaume nusbaume 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 do have a couple requests and a couple questions.

src/data/write_init_files.py Outdated Show resolved Hide resolved
src/data/write_init_files.py Outdated Show resolved Hide resolved
src/data/write_init_files.py Show resolved Hide resolved
src/data/write_init_files.py Outdated Show resolved Hide resolved
@nusbaume nusbaume self-requested a review July 31, 2023 14:57
Copy link
Collaborator

@nusbaume nusbaume left a comment

Choose a reason for hiding this comment

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

Just requesting a couple of updates to the new error checks, after which I think this PR will be good to go (at least for me).

src/data/write_init_files.py Outdated Show resolved Hide resolved
src/data/write_init_files.py Outdated Show resolved Hide resolved
mwaxmonsky and others added 2 commits August 1, 2023 10:01
Updating not equal comparison to match current code style.  Adding line number and file name to error message.

Co-authored-by: Jesse Nusbaumer <[email protected]>
Updating not equal comparison to match current code style.  Adding line number and file name to error message.

Co-authored-by: Jesse Nusbaumer <[email protected]>
@mwaxmonsky
Copy link
Collaborator Author

Good call on both changes! Updated.

Copy link
Collaborator

@nusbaume nusbaume left a comment

Choose a reason for hiding this comment

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

Looks great now, thanks!

@nusbaume
Copy link
Collaborator

nusbaume commented Aug 7, 2023

@peverwhee @cacraigucar It looks like I'll need these changes as well in order to properly validate the physics schemes in atmospheric_physics. So if you could bump this review up somewhat in terms of your priorities that would be great, thanks!

src/dynamics/se/dyn_comp.F90 Show resolved Hide resolved
src/physics/utils/physics_data.F90 Outdated Show resolved Hide resolved
src/physics/utils/physics_data.F90 Outdated Show resolved Hide resolved
src/physics/utils/physics_data.F90 Outdated Show resolved Hide resolved
src/physics/utils/physics_data.F90 Show resolved Hide resolved
Copy link
Collaborator

@peverwhee peverwhee left a comment

Choose a reason for hiding this comment

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

One-ish comment from me, but looks good overall (assuming you also address Cheryl's comments)

src/physics/utils/physics_data.F90 Outdated Show resolved Hide resolved
src/physics/utils/physics_data.F90 Outdated Show resolved Hide resolved
Copy link
Collaborator

@peverwhee peverwhee 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! Thanks!

Copy link
Collaborator

@cacraigucar cacraigucar left a comment

Choose a reason for hiding this comment

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

Revisions look good to me

@mwaxmonsky
Copy link
Collaborator Author

@cacraigucar I updated the error message formatting on this last commit, could you take a look at the implementation and just let me know if it seems reasonable? Just want to make sure the way I'm using the string concatenation is consistent.

@mwaxmonsky mwaxmonsky merged commit 55b850f into ESCOMP:development Aug 23, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Tag
Development

Successfully merging this pull request may close these issues.

5 participants