aboutsummaryrefslogtreecommitdiffstats
path: root/core/profile.c
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2018-04-10 21:20:38 +0200
committerGravatar Robert C. Helling <helling@atdotde.de>2018-04-11 21:15:38 +0200
commitece714556fa2403dddec481a7a09d68eb82e84fa (patch)
treec422e24795d7d866d2e98d0baa223677aa084eb4 /core/profile.c
parent71d1e78db2435c74a3170a9fe0d3e4e0e6c946c2 (diff)
downloadsubsurface-ece714556fa2403dddec481a7a09d68eb82e84fa.tar.gz
Look for actual isobaric counter diffusion
Identify segements that fullfill the folllowing criteria for the leading compartment: He is off-gasing while N2 is on-gasing Overall there is on-gasing Add a line to the info box for those segments Signed-off-by: Robert C. Helling <helling@atdotde.de>
Diffstat (limited to 'core/profile.c')
-rw-r--r--core/profile.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/profile.c b/core/profile.c
index 2fbc3a892..835e68dcc 100644
--- a/core/profile.c
+++ b/core/profile.c
@@ -1036,7 +1036,8 @@ void calculate_deco_information(struct deco_state *ds, struct deco_state *planne
for (j = t0 + time_stepsize; j <= t1; j += time_stepsize) {
int depth = interpolate(entry[-1].depth, entry[0].depth, j - t0, t1 - t0);
add_segment(ds, depth_to_bar(depth, dive),
- gasmix, time_stepsize, entry->o2pressure.mbar, dive, entry->sac);
+ gasmix, time_stepsize, entry->o2pressure.mbar, dive, entry->sac);
+ entry->icd_warning = ds->icd_warning;
if ((t1 - j < time_stepsize) && (j < t1))
time_stepsize = t1 - j;
}
@@ -1498,6 +1499,8 @@ static void plot_string(struct plot_info *pi, struct plot_data *entry, struct me
}
}
}
+ if (entry->icd_warning)
+ put_format(b, "%s", translate("gettextFromC", "ICD in leading tissue\n"));
if (entry->heartbeat && prefs.hrgraph)
put_format_loc(b, translate("gettextFromC", "heart rate: %d\n"), entry->heartbeat);
if (entry->bearing >= 0)