From bb020ae918593b5241e64582847e8d54ede7243d Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Thu, 23 Oct 2014 16:14:26 +0200 Subject: Take water vapor pressure into account again for deco In the transition to the partial pressure helper function, the water vapor component of the breathing gas had been dropped. This had a significant effect on deco times for deep dives. Signed-off-by: Robert C. Helling Signed-off-by: Dirk Hohndel --- deco.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deco.c b/deco.c index 8dcfb7e8b..49363f612 100644 --- a/deco.c +++ b/deco.c @@ -190,7 +190,7 @@ double add_segment(double pressure, const struct gasmix *gasmix, int period_in_s int fo2 = get_o2(gasmix), fhe = get_he(gasmix); struct gas_pressures pressures; - fill_pressures(&pressures, pressure, gasmix, (double) ccpo2 / 1000.0); + fill_pressures(&pressures, pressure - WV_PRESSURE, gasmix, (double) ccpo2 / 1000.0); if (buehlmann_config.gf_low_at_maxdepth && pressure > gf_low_pressure_this_dive) gf_low_pressure_this_dive = pressure; -- cgit v1.2.3-70-g09d2