summaryrefslogtreecommitdiffstats
path: root/deco.c
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2015-08-23 16:04:59 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-08-23 07:30:23 -0700
commit41349c29ddc45e7c19fc287f10fa8f6712bcf111 (patch)
tree4a49e3afcc7ce9086edd3d3b0518155ea82c3f21 /deco.c
parentcb375623f956c99c211bba0c18ace688e7eb6942 (diff)
downloadsubsurface-41349c29ddc45e7c19fc287f10fa8f6712bcf111.tar.gz
Prepare global state of VPM-B when starting to plan
Otherwise, the results of the calculations tend to be rather random and irreproducible... 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, 2 insertions, 0 deletions
diff --git a/deco.c b/deco.c
index 8bff4c226..20d8b0479 100644
--- a/deco.c
+++ b/deco.c
@@ -508,6 +508,8 @@ void clear_deco(double surface_pressure)
tissue_he_sat[ci] = 0.0;
max_n2_crushing_pressure[ci] = 0.0;
max_he_crushing_pressure[ci] = 0.0;
+ n2_regen_radius[ci] = get_crit_radius_N2();
+ he_regen_radius[ci] = get_crit_radius_He();
}
gf_low_pressure_this_dive = surface_pressure;
if (!buehlmann_config.gf_low_at_maxdepth)