Skip to content

Remove _constrain_dt_to_within_time_interval function#2754

Open
erikvansebille wants to merge 2 commits into
Parcels-code:mainfrom
erikvansebille:remove_constrain_dt_to_within_time_interval
Open

Remove _constrain_dt_to_within_time_interval function#2754
erikvansebille wants to merge 2 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

1 participant