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

Fixed downsampling for x:sum y:point z:point diags #1364

Merged
merged 3 commits into from
Apr 7, 2021

Conversation

jkrasting
Copy link
Contributor

  • previous code had averaging instead of summation for
    SPP (x:sum,y:point,z:point) diagnostics
  • corrects an issue where these diagnostics were incorrect
    by approximately a factor of 2.
  • Orginially found when analyzing the depth-integrated
    temperature advection diagnostic (T_ady_2d)

- previous code had averaging instead of summation for
  SPP (x:sum,y:point,z:point) diagnostics
- corrects an issue where these diagnostics were incorrect
  by approximately a factor of 2.
- Orginially found when analyzing the depth-integrated
  temperature advection diagnostic (T_ady_2d)
@jkrasting
Copy link
Contributor Author

jkrasting commented Apr 1, 2021 via email

@Hallberg-NOAA
Copy link
Collaborator

I agree that we do also need the other corrections on the lines that @raphaeldussin noted.

While we are at it, for clarity when reading the code we might want to replace the variable "ave" with a new variable "sum" in these cases and eliminate the now-unused variable "total_weight" in these cases.

jkrasting and others added 2 commits April 2, 2021 10:04
- Fixes for SSP (x:sum;y:sum,z:point) and
  PSP (x:point,y:sum,z:point) diagnostics
- Removed unused `total_weight` arrays in these cases
Copy link
Collaborator

@Hallberg-NOAA Hallberg-NOAA left a comment

Choose a reason for hiding this comment

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

I agree that these changes correct important bugs in the reduced-grid diagnostic output.

@Hallberg-NOAA
Copy link
Collaborator

This PR passed pipeline testing at https://gitlab.gfdl.noaa.gov/ogrp/MOM6/-/pipelines/12421.

@Hallberg-NOAA Hallberg-NOAA merged commit c5c7441 into mom-ocean:dev/gfdl Apr 7, 2021
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.

3 participants