From d9306125d97a90b3e589fe263ae08e12b7327773 Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Mon, 31 Aug 2015 22:15:43 +0200 Subject: Do the Boyle compensation when the gradient is needed and not some time before and store the result in a global variable. This stores only the bottom gradients and computes the Boyle compensation when computing the allowed ambient pressure. As the Boyle compensation needs a reference ambient pressure, to find the ceiling, we have to iterate this computation until the reference pressure is close enough to the ceiling. Signed-off-by: Robert C. Helling Signed-off-by: Dirk Hohndel --- profile.c | 1 - 1 file changed, 1 deletion(-) (limited to 'profile.c') diff --git a/profile.c b/profile.c index 3764b6fd9..d028cd84c 100644 --- a/profile.c +++ b/profile.c @@ -859,7 +859,6 @@ void calculate_deco_information(struct dive *dive, struct divecomputer *dc, stru if ((t1 - j < time_stepsize) && (j < t1)) time_stepsize = t1 - j; } - boyles_law(depth_to_mbar((entry->depth < (entry - 1)->ceiling) ? entry->depth : (entry - 1)->ceiling, &displayed_dive) / 1000.0); if (t0 == t1) entry->ceiling = (entry - 1)->ceiling; else -- cgit v1.2.3-70-g09d2