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 translation bug in ref state bcs #53

Merged
merged 2 commits into from
Jul 29, 2021
Merged

Fix translation bug in ref state bcs #53

merged 2 commits into from
Jul 29, 2021

Conversation

charleskawczynski
Copy link
Member

This is likely not what we want in the end, but for early-on comparisons, and perhaps if there are assumptions elsewhere about how the ref state bcs are applied, this PR fixes a translation bug in the ref state bcs: in SCAMPy, the p_half field has two missing elements at the start and end of the array, and both points are mirrored in log-space about the boundary. This enters the computations here.

@charleskawczynski
Copy link
Member Author

charleskawczynski commented Jul 29, 2021

With these changes, ~120 fields in TRMM_LBA match scampy to ~1e-9 (max mse) at the 20th timestep.

@charleskawczynski
Copy link
Member Author

bors r+

@codecov
Copy link

codecov bot commented Jul 29, 2021

Codecov Report

Merging #53 (ce19e5c) into main (473ecd9) will decrease coverage by 0.00%.
The diff coverage is 0.00%.

Impacted file tree graph

@@           Coverage Diff            @@
##            main     #53      +/-   ##
========================================
- Coverage   0.02%   0.02%   -0.01%     
========================================
  Files         23      23              
  Lines       3499    3503       +4     
========================================
  Hits           1       1              
- Misses      3498    3502       +4     
Impacted Files Coverage Δ
src/ReferenceState.jl 0.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 473ecd9...ce19e5c. Read the comment docs.

@bors bors bot merged commit 61802f5 into main Jul 29, 2021
@bors bors bot deleted the ck/ref_state branch July 29, 2021 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant