Replies: 2 comments 8 replies
-
HI @selipot, you can see an example of how that's done (using parcels v3) below: RK45Particle = JITParticle.add_variable('next_dt', dtype=np.float32, initial=dt) And then use For older Parcels versions, you don't need to set this Note that @daanreijnders found an issue with the RK45 implementation at #1516, that's on my list to explore/fix in the coming days. So keep an eye on that Issue |
Beta Was this translation helpful? Give feedback.
-
Hi @erikvansebille thank you for your reply. I am currently using version 2.4.1.dev9 so if I understand properly what you wrote I should simply define my kernel as (I'd like to take note of the issue that @daanreijnders posted at #1516 but the link to the notebook there seems outdated.) |
Beta Was this translation helpful? Give feedback.
-
I would like to test the Runge-Kutta 4 advection scheme against the Runge-Kutta 4/5 scheme. The docstring for the kernel AdvectionRK45 states that:
Note that this kernel requires a Particle Class that has an extra Variable ‘next_dt’
Is there more information in the documentation about what that extra variable corresponds to? I am unable to find it. Any help or pointer would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions