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

Eliminate amp adjustment #604

Merged
merged 2 commits into from
Dec 18, 2023
Merged

Conversation

jlaucar
Copy link
Contributor

@jlaucar jlaucar commented Dec 18, 2023

Description:

Removed an amplitude adjustment factor from inv_bnrh_cdf. This was a legacy bit of code
that was required to bitwise reproduce earlier versions. About half of ensemble sizes
continue to bitwise reproduce with this change using Jeff's lorenz96_tracer_mod tests.
For the others, the amp_adj was different from 1 at the smallest writeable decimal
point and the tests ran producing reasonable, but no longer backward compatible,
results.

Fixes issue

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

Documentation changes needed?

  • My change requires a change to the documentation.
    • I have updated the documentation accordingly.

Tests

See description.

Checklist for merging

  • Updated changelog entry
  • Documentation updated
  • Update conf.py

Checklist for release

  • Merge into main
  • Create release from the main branch with appropriate tag
  • Delete feature-branch

Testing Datasets

  • Dataset needed for testing available upon request
  • Dataset download instructions included
  • No dataset needed

…legacy bit of code

that was required to bitwise reproduce earlier versions. About half of ensemble sizes
continue to bitwise reproduce with this change using Jeff's lorenz96_tracer_mod tests.
For the others, the amp_adj was different from 1 at the smallest writeable decimal
point and the tests ran producing reasonable, but no longer backward compatible,
results.
@hkershaw-brown hkershaw-brown changed the base branch from main to quantile_methods December 18, 2023 17:51
Copy link
Member

@hkershaw-brown hkershaw-brown 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 Jeff. You still have amp_adj in the declarations for inv_bnrh_cdf. You can take that out since amp_adj is not in the subroutine anymore

-real(r8) :: q(ens_size), curr_q, lower_q, upper_q, del_q, fract, amp_adj
+real(r8) :: q(ens_size), curr_q, lower_q, upper_q, del_q, fract

@jlaucar
Copy link
Contributor Author

jlaucar commented Dec 18, 2023 via email

Copy link
Member

@hkershaw-brown hkershaw-brown left a comment

Choose a reason for hiding this comment

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

perfect. Approved!

@hkershaw-brown hkershaw-brown merged commit 387249d into quantile_methods Dec 18, 2023
3 checks passed
@hkershaw-brown hkershaw-brown deleted the eliminate_amp_adjustment branch December 22, 2023 14:54
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