subsurface/subsurface-core
Linus Torvalds b71fc7ffb2 pressure interpolation: further code simplification
With the two bigger simplications, this just re-organizes the code to do
the "interpolate.pressure_time" update that is shared among all the
"after segment start" cases in just one place.

That leaves the get_pr_interpolate_data() much simpler, and makes it
much clearer what it actually does.

In particular, it becomes very obvious that "interpolate.pressure_time"
is constant for one particular segment (it's the total pressure time),
and that "interpolate.acc_pressure_time" is the one that gets updated
for every entry.

The next step is to only call this for the first entry, and then update
just the "acc_pressure_time" in the caller.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-02-21 16:34:46 -08:00
..
2016-01-26 09:51:14 -08:00
2016-01-26 09:51:14 -08:00
2015-10-30 10:36:49 -07:00
2015-10-30 10:36:49 -07:00
2015-11-15 12:10:37 -08:00
2015-11-02 19:54:34 -08:00
2016-02-01 18:01:05 -08:00
2016-01-11 06:14:45 -08:00
2016-02-03 06:06:23 -08:00
2016-01-31 13:06:39 -08:00
2015-10-30 10:36:49 -07:00
2015-10-30 10:36:49 -07:00
2015-11-15 12:10:37 -08:00
2016-01-31 13:06:39 -08:00
2015-11-09 18:00:56 -08:00
2016-01-24 21:26:45 -08:00
2016-02-01 18:01:05 -08:00
2015-11-14 10:43:37 -08:00
2016-01-10 14:12:23 -08:00
2015-12-27 21:31:13 -08:00
2016-01-24 21:27:05 -08:00