Repository navigation
Conversation
|
No actionable comments were generated in the recent review. WalkthroughThe ChangesCell area output
Estimated code review effort: 2 (Simple) | ~8 minutes Change: Bug fix · Severity of issue fixed: Low Suggested reviewers: Merge Risk:
|
Instead of switching to scientific notation below 1e-6, print more decimal places: as many as it takes to keep 5 significant digits, which is what a resolution 5 cell already gets from 10 places. Output for areas of 1e-6 and above is unchanged, and precision no longer jumps at the threshold. The resolution 15 test now expects 5 significant digits rather than 8, which is well within what the area calculation reproduces across platforms. Also adds the CHANGELOG entry. Co-Authored-By: Claude Code <[email protected]>
|
Thanks for the fix! I pushed a commit to this branch that keeps the output in decimal notation instead of switching to scientific notation below 1e-6:
I also updated the PR description to match. |
Resolve the CHANGELOG.md conflict: 4.6.0 has been released, so move the cellAreaRads2 entry to the Unreleased section. Co-Authored-By: Claude Code <[email protected]>
Fixes #1307.
Summary
h3 cellAreaRads2previously formatted all results with%.10lf, which rounded valid high-resolution cell areas (resolutions 12-15, e.g.8f283082800b3b0at~2.29e-14sr) to0.0000000000.cellAreaRads2values below1e-6with enough decimal places to keep 5 significant digits, so high-resolution cell areas no longer round to zero. Output stays in decimal notation:8f283082800b3b0now prints0.000000000000022909.area >= 1e-6, so existing output is unchanged (includingtestCliCellAreaRads2).testCliCellAreaRads2Res15intests/cli/cellAreaRads2.txt.Verification
Debug) and ranctest --test-dir build --output-on-failure -j: 337/337 tests passed.