mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
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>
This commit is contained in:
parent
d42b07a30a
commit
bb020ae918
1 changed files with 1 additions and 1 deletions
2
deco.c
2
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);
|
int fo2 = get_o2(gasmix), fhe = get_he(gasmix);
|
||||||
struct gas_pressures pressures;
|
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)
|
if (buehlmann_config.gf_low_at_maxdepth && pressure > gf_low_pressure_this_dive)
|
||||||
gf_low_pressure_this_dive = pressure;
|
gf_low_pressure_this_dive = pressure;
|
||||||
|
|
Loading…
Reference in a new issue