Willem,

Am 11.10.2016 um 13:32 schrieb Willem Ferguson <[email protected]>:

Heat maps on images 1 and 3 not consistent.

this is a bug for which I sent a patch a couple of days ago. Apparently it never made it to master, so resending…
From 4222449c6e6ff51481d531727e87af99bfee9c36 Mon Sep 17 00:00:00 2001
From: "Robert C. Helling" <[email protected]>
Date: Mon, 3 Oct 2016 16:38:37 +0200
Subject: [PATCH 3/4] Compute weighted Buehlmann coefficients for all deco
 models
To: [email protected]

... as those are needed for the heatmap and not only
for Buehlmann ceilings.

Signed-off-by: Robert C. Helling <[email protected]>
---
 core/deco.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/core/deco.c b/core/deco.c
index 5d4a18c..09426bd 100644
--- a/core/deco.c
+++ b/core/deco.c
@@ -248,11 +248,13 @@ double tissue_tolerance_calc(const struct dive *dive, 
double pressure)
        double lowest_ceiling = 0.0;
        double tissue_lowest_ceiling[16];
 
+       for (ci = 0; ci < 16; ci++) {
+               buehlmann_inertgas_a[ci] = ((buehlmann_N2_a[ci] * 
tissue_n2_sat[ci]) + (buehlmann_He_a[ci] * tissue_he_sat[ci])) / 
tissue_inertgas_saturation[ci];
+               buehlmann_inertgas_b[ci] = ((buehlmann_N2_b[ci] * 
tissue_n2_sat[ci]) + (buehlmann_He_b[ci] * tissue_he_sat[ci])) / 
tissue_inertgas_saturation[ci];
+       }
+
        if (prefs.deco_mode != VPMB) {
                for (ci = 0; ci < 16; ci++) {
-                       buehlmann_inertgas_a[ci] = ((buehlmann_N2_a[ci] * 
tissue_n2_sat[ci]) + (buehlmann_He_a[ci] * tissue_he_sat[ci])) / 
tissue_inertgas_saturation[ci];
-                       buehlmann_inertgas_b[ci] = ((buehlmann_N2_b[ci] * 
tissue_n2_sat[ci]) + (buehlmann_He_b[ci] * tissue_he_sat[ci])) / 
tissue_inertgas_saturation[ci];
-
 
                        /* tolerated = (tissue_inertgas_saturation - 
buehlmann_inertgas_a) * buehlmann_inertgas_b; */
 
-- 
2.8.4 (Apple Git-73)


Best
Robert

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

_______________________________________________
subsurface mailing list
[email protected]
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to