Skip to content

Conversation

@erikvansebille
Copy link
Member

This PR removes the particles.lon_nextloop, particles.lat_nextloop and particles.depth_nextloop as they are not necessary anymore, now that the dlon is stored as a Variable on the particles.

However, I'm afraid we do need to keep the particle.time_nextloop for now because we can't initialise particles.dt=0, meaning particles.time would be already increased in the Setcoords Kernel. This would result in time and location being mismatched. I'll dig a bit deeper and hopefully find a clean solution

As they are not necessary anymore. However, we are keeping time_nextloop for now because we can't initialise particles.dt=0 (meaning particles.time would be already increased in the Setcoords Kernel)
Copy link
Contributor

@VeckoTheGecko VeckoTheGecko left a comment

Choose a reason for hiding this comment

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

This looks good. Saw the draft status - anything stopping us from merging is and looking at time_nextloop another time?

@erikvansebille erikvansebille marked this pull request as ready for review September 15, 2025 10:29
@erikvansebille erikvansebille merged commit 2ce77c1 into v4-dev Sep 15, 2025
9 checks passed
@erikvansebille erikvansebille deleted the removing_nextloop_variables branch September 15, 2025 10:55
@github-project-automation github-project-automation bot moved this from Backlog to Done in Parcels development Sep 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants