Skip to content

Remove _constrain_dt_to_within_time_interval function#2754

Merged
erikvansebille merged 3 commits into
Parcels-code:mainfrom
erikvansebille:remove_constrain_dt_to_within_time_interval
Jul 16, 2026
Merged

Remove _constrain_dt_to_within_time_interval function#2754
erikvansebille merged 3 commits into
Parcels-code:mainfrom
erikvansebille:remove_constrain_dt_to_within_time_interval

Conversation

@erikvansebille

Copy link
Copy Markdown
Member

While cleaning up some of the advection kernels, I realised that we don't need the _constrain_dt_to_within_time_interval() helper function (implemented in #2378) anymore, as a recent change to the kernel loop has meant that RK-functions don't call outside the time_interval

This simplifies the Kernels and makes them significantly more intuitive , as users don't need to figure out what this _constrain_dt_to_within_time_interval() helper function does. It will also (slightly) speed up kernels, as there are less operations on the particles

Checklist

  • Closes #xxxx
  • Tests added
  • This PR targets the correct branch (main for normal development, v3-support for v3 support)

AI Disclosure

None

As not needed anymore with recent kernel loop change

This simplifies the Kernels and reverts Parcels-code#2378
@erikvansebille erikvansebille enabled auto-merge (squash) July 16, 2026 09:45
@erikvansebille erikvansebille merged commit 1fd82a8 into Parcels-code:main Jul 16, 2026
15 of 16 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog to Done in Parcels development Jul 16, 2026
@erikvansebille erikvansebille deleted the remove_constrain_dt_to_within_time_interval branch July 16, 2026 09:54
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.

1 participant