diff options
author | Jan Darowski <jan.darowski@gmail.com> | 2015-07-03 22:18:41 +0200 |
---|---|---|
committer | Jan Darowski <jan.darowski@gmail.com> | 2015-07-03 22:18:41 +0200 |
commit | ecd0e3e170e5a8ec96be8d19d095e7c75c63c825 (patch) | |
tree | 6f303386b254700ddf8813e040536ae7d53cf2f6 /deco.c | |
parent | bed3b9eea3d0ba27433d8df55cd0e0eadeca5dcf (diff) | |
download | subsurface-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.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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) |