Skip to content

v2 to v3 Upgrade: Confirm One Less Timestep Written #1542

Answered by erikvansebille
jamespolly asked this question in Q&A
Discussion options

You must be logged in to vote

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 or endtime a bit larger)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jamespolly
Comment options

Answer selected by jamespolly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants