Fix typo in saturation/desatureation rates

This patch eliminates the difference between the saturation and
desaturation rates. This was probably once meant as a conservative
measure but the desaturation rate was increased rather than the
saturation rate (which is probably a typo, as reported by Stefan).

Since there is no good basis for this anyway, this patch sets
both factors to 1.0 (and if accepted the whole factor business
should be removed).

This makes our deco times slightly longer. But in the past,
we had introduced a 1.2% fudge factor in the critical radius
calculation to add conservatism and match the benchmark better.

Removing this fudge factor brings us close to the benchmarks.
Expected test values updated.

Reported-by: Stefan <sjti@gmx.net>
Signed-off-by: Robert C. Helling <helling@atdotde.de>
This commit is contained in:
Robert C. Helling 2017-02-19 10:28:55 +01:00 committed by Dirk Hohndel
parent dc55ee4a23
commit bd89e33e76
2 changed files with 9 additions and 9 deletions

View file

@ -27,7 +27,7 @@
// Subsurface appears to produce marginally less conservative plans than our benchmarks
// Introduce 1.2% additional conservatism
#define subsurface_conservatism_factor 1.012
#define subsurface_conservatism_factor 1.0
extern bool in_planner();
@ -48,7 +48,7 @@ struct buehlmann_config {
struct buehlmann_config buehlmann_config = {
.satmult = 1.0,
.desatmult = 1.01,
.desatmult = 1.0,
.last_deco_stop_in_mtr = 0,
.gf_high = 0.75,
.gf_low = 0.35,