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

Position interpolation was broken - fix it #685

Merged
merged 3 commits into from
Sep 1, 2024

Conversation

abensonca
Copy link
Collaborator

Commit edc8a2c broke interpolation of N-body positions because:

  1. Any set position was ignored in favor of a position drawn from the positionHistory if available;

  2. The nodeOperatorPositionInterpolated class was computing the interpolation but never actually setting the position.

Additionally, lightcone classes, which rely on this interpolation to find the exact time of lightcone crossing, were no longer getting interpolated position as they simply updated the basis%time() property. This used to work, but with the refactoring in commit edc8a2c we instead need to call the solveAnalytics method of the nodeOperator to set the positions.

Commit edc8a2c broke interpolation of N-body positions because:

1. Any set position was ignored in favor of a position drawn from the `positionHistory` if available;

2. The `nodeOperatorPositionInterpolated` class was computing the interpolation but never actually setting the position.

Additionally, lightcone classes, which rely on this interpolation to find the exact time of lightcone crossing, were no longer getting interpolated position as they simply updated the `basis%time()` property. This used to work, but with the refactoring in commit edc8a2c we instead need to call the `solveAnalytics` method of the `nodeOperator` to set the positions.
@abensonca abensonca self-assigned this Aug 30, 2024
@abensonca abensonca added bug Something isn't working lightcones labels Aug 30, 2024
Copy link

⚠️ Possible misspelled word '2a' (2 instances) in file 'source/geometry.lightcones.square.F90'
⚠️ Possible misspelled word '2x' (6 instances) in file 'source/geometry.lightcones.square.F90'

Copy link

⚠️ Possible misspelled word '2a' (2 instances) in file 'source/geometry.lightcones.square.F90'
⚠️ Possible misspelled word '2x' (6 instances) in file 'source/geometry.lightcones.square.F90'

@abensonca abensonca added this pull request to the merge queue Sep 1, 2024
Merged via the queue into master with commit 46273b7 Sep 1, 2024
282 checks passed
@abensonca abensonca deleted the fixPositionInterpolation branch October 22, 2024 23:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working lightcones
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant