summaryrefslogtreecommitdiffstats
path: root/deco.c
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2014-10-23 16:14:26 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-10-26 20:22:32 -0700
commitbb020ae918593b5241e64582847e8d54ede7243d (patch)
tree5c5c210d13ded0c80e1071a40e8279e69b56a74c /deco.c
parentd42b07a30a01790cd7dcd6320098cdad2d6b6218 (diff)
downloadsubsurface-bb020ae918593b5241e64582847e8d54ede7243d.tar.gz
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 <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'deco.c')
-rw-r--r--deco.c2
1 files changed, 1 insertions, 1 deletions
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;