summaryrefslogtreecommitdiffstats
path: root/deco.c
diff options
context:
space:
mode:
authorGravatar Jan Darowski <jan.darowski@gmail.com>2015-07-03 22:18:41 +0200
committerGravatar Jan Darowski <jan.darowski@gmail.com>2015-07-03 22:18:41 +0200
commitecd0e3e170e5a8ec96be8d19d095e7c75c63c825 (patch)
tree6f303386b254700ddf8813e040536ae7d53cf2f6 /deco.c
parentbed3b9eea3d0ba27433d8df55cd0e0eadeca5dcf (diff)
downloadsubsurface-ecd0e3e170e5a8ec96be8d19d095e7c75c63c825.tar.gz
VPM-B: add initial values for crushing pressure variables.
Signed-off-by: Jan Darowski <jan.darowski@gmail.com>
Diffstat (limited to 'deco.c')
-rw-r--r--deco.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/deco.c b/deco.c
index f29a82600..b8aae27a0 100644
--- a/deco.c
+++ b/deco.c
@@ -322,10 +322,13 @@ void clear_deco(double surface_pressure)
for (ci = 0; ci < 16; ci++) {
tissue_n2_sat[ci] = (surface_pressure - WV_PRESSURE) * N2_IN_AIR / 1000;
tissue_he_sat[ci] = 0.0;
+ max_n2_crushing_pressure[ci] = 0.0;
+ max_he_crushing_pressure[ci] = 0.0;
}
gf_low_pressure_this_dive = surface_pressure;
if (!buehlmann_config.gf_low_at_maxdepth)
gf_low_pressure_this_dive += buehlmann_config.gf_low_position_min;
+ max_ambient_pressure = 0.0;
}
void cache_deco_state(double tissue_tolerance, char **cached_datap)