Skip to content

Conversation

@missing-user
Copy link
Contributor

@missing-user missing-user commented Nov 23, 2024

Fixes out of bounds error mentioned in #187 . The
change by @KseniaAleynikova does cause a minor regression, everything stayed within the expected bounds.

I believe the tests were simply failing, because the newly introduced accumulators dH1 and dH2 had uninitialized memory at the beginning of the loop.

@missing-user missing-user changed the title out of bounds indexing corrected [Gauge invariant Helicity] Out of bounds indexing corrected Nov 23, 2024
@missing-user
Copy link
Contributor Author

missing-user commented Nov 26, 2024

Sorry, I initially made a mistake implementing the fix. Now the gauge is correct, only the helicity changes by a relevant amount in the test cases and the references were updated.

There is a slight regression, some of the resulting Rbc, sg, Zbs terms changed in the order of 1e-12, slightly above the thresholds for the tests.

With this fix, #187 is ready to merge.

@smiet smiet merged commit fd97ab3 into PrincetonUniversity:gauge_invariant_helicity Dec 1, 2024
4 of 5 checks passed
@missing-user missing-user deleted the gauge_invariant_helicity branch December 1, 2024 17:51
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