v2 to v3 Upgrade: Confirm One Less Timestep Written #1542
-
Hello! I'm upgrading the version of parcels in my codebase from 2.4.x to 3.0.0. I'd like to confirm that this upgrade has the following effect for the same simulation of two particles over a 5 hour runtime with a one hour output_dt. Below are the
Based on some cursory review, this part of the documentation seems most relevant: https://docs.oceanparcels.org/en/latest/examples/tutorial_kernelloop.html#3.-The-last-time-is-not-written-to-file If someone can confirm that this is a known change in the behavior in v3.0.0 that would be most appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Yep, this is correct and expected behaviour. If you still want the last output written too, you can use Alternative is to let your run go on for a little bit longer (i.e. set your |
Beta Was this translation helpful? Give feedback.
Yep, this is correct and expected behaviour. If you still want the last output written too, you can use
pfile.write_latest_locations(pset, time=endtime)
(but note that this may not be correct values for variables other than longitude, latitude and depth).Alternative is to let your run go on for a little bit longer (i.e. set your
runtime
orendtime
a bit larger)