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 variable names and unused arguments #393

Merged
merged 35 commits into from
Dec 9, 2022
Merged

Fix variable names and unused arguments #393

merged 35 commits into from
Dec 9, 2022

Conversation

mcgibbon
Copy link
Collaborator

@mcgibbon mcgibbon commented Nov 23, 2022

Purpose

This PR fixes many small issues. In particular, cases of renaming variables and objects, removing unused arguments, and removing index arguments in favor of dimension names.

The commit history should be referenced for details of changes. This PR should be reviewed commit-by-commit and merged without squashing to preserve history.

Checklist

Before submitting this PR, please make sure:

  • You have followed the coding standards guidelines established at Code Review Checklist.
  • Docstrings and type hints are added to new and updated routines, as appropriate
  • All relevant documentation has been updated or added (e.g. README, CONTRIBUTING docs)
  • For each public change and fix in pace-util, HISTORY has been updated
  • Unit tests are added or updated for non-stencil code changes

@mcgibbon mcgibbon marked this pull request as ready for review November 23, 2022 22:37
@mcgibbon mcgibbon requested a review from elynnwu November 23, 2022 22:57
@@ -571,14 +572,13 @@ def heat_source_from_vorticity_damping(
ubt, vbt, gx, gy, rsin2, cosa_s, u2, v2, du2, dv2
)
heat_source = delp * (
heat_source - 0.25 * kinetic_energy_fraction_to_damp * dampterm
heat_source - kinetic_energy_fraction_to_damp * dampterm
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't remember why we're removing this 0.25?

fv3core/pace/fv3core/stencils/dyn_core.py Outdated Show resolved Hide resolved
fv3core/pace/fv3core/testing/map_single.py Outdated Show resolved Hide resolved
@elynnwu elynnwu merged commit 08a686f into main Dec 9, 2022
@elynnwu elynnwu deleted the fix/naming branch December 9, 2022 22:10
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