Weather routing: Difference between revisions

m
Line 1,140:
atom nt = duration + sailsegmenttime(sp, lat1, lon1, lat2, lon2)
if costs[ny,nx]=-1 or nt<costs[ny,nx] then
-- a larger (than 9x9) simulation might benefit from not
-- putting any already-too-long routes back on the todo
-- list and/or processing todo lowest duration first.
costs[ny,nx] = nt
paths[ny,nx] = {py,px}
7,805

edits