diff options
author | Robert C. Helling <helling@atdotde.de> | 2018-01-20 21:39:38 +0100 |
---|---|---|
committer | Robert C. Helling <helling@atdotde.de> | 2018-01-21 15:24:46 +0100 |
commit | c89cfcccbe8700af13554465e4e09b424aa1be00 (patch) | |
tree | 306cf8227d9549d80695352faec8d2d1cb02bd66 /core | |
parent | 0d103b456c88b4ecfee2526ec9634ed06966d4ed (diff) | |
download | subsurface-c89cfcccbe8700af13554465e4e09b424aa1be00.tar.gz |
Only give ICD warning if pN2 increases
as otherwise there are warning on the descent.
The ICD line in the info box is generated for all
gas switches with decreasing He content.
Also change the presentation in the info box to align it
with the notes.
Signed-off-by: Robert C. Helling <helling@atdotde.de>
Diffstat (limited to 'core')
-rw-r--r-- | core/dive.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/dive.c b/core/dive.c index 54d2a00f4..6d19b7e58 100644 --- a/core/dive.c +++ b/core/dive.c @@ -1184,7 +1184,7 @@ bool isobaric_counterdiffusion(struct gasmix *oldgasmix, struct gasmix *newgasmi { results->dN2 = get_he(oldgasmix) + get_o2(oldgasmix) - get_he(newgasmix) - get_o2(newgasmix); results->dHe = get_he(newgasmix) - get_he(oldgasmix); - return get_he(oldgasmix) && results->dN2 > 0 && 5 * results->dN2 > -results->dHe; + return get_he(oldgasmix) > 0 && results->dN2 > 0 && results->dHe < 0 && get_he(oldgasmix) && results->dN2 > 0 && 5 * results->dN2 > -results->dHe; } /* some events should never be thrown away */ |