# HG changeset patch # User JeanDo # Date 1320420252 -3600 # Node ID 560764da0629ce3f1bff7a214baaff7f9459d58b # Parent 68aa097f00626a26fef4bf12b79f4ebb31d8ec4c BUGFIX Surface desat factor missing for Interval planning in GF mode. diff -r 68aa097f0062 -r 560764da0629 code_part1/OSTC_code_asm_part1/changelog.txt --- a/code_part1/OSTC_code_asm_part1/changelog.txt Sat Oct 29 15:53:21 2011 +0200 +++ b/code_part1/OSTC_code_asm_part1/changelog.txt Fri Nov 04 16:24:12 2011 +0100 @@ -1,6 +1,7 @@ New in 2.04 beta: BETA Version - Do NOT use for diving! -BUGFIX: Missed surface pressure for CNS in decoplan +BUGFIX: Missing surface pressure for CNS in decoplan. +BUGFIX: Surface desat factor missing for Interval planning in GF mode. New in 2.03 beta: BETA Version - Do NOT use for diving! diff -r 68aa097f0062 -r 560764da0629 code_part1/OSTC_code_c_part2/p2_deco.c --- a/code_part1/OSTC_code_c_part2/p2_deco.c Sat Oct 29 15:53:21 2011 +0200 +++ b/code_part1/OSTC_code_c_part2/p2_deco.c Fri Nov 04 16:24:12 2011 +0100 @@ -110,6 +110,9 @@ #define METER_TO_BAR 0.09985 #define BAR_TO_METER 10.0150 // (1.0/METER_TO_BAR) +// Surface security factor +#define SURFACE_DESAT_FACTOR 0.7042 + // ************************* // ** P R O T O T Y P E S ** // ************************* @@ -907,7 +910,7 @@ if( char_I_deco_model == 0 ) { - if (temp_tissue < 0.0) + if( temp_tissue < 0.0 ) temp_tissue *= float_desaturation_multiplier; else temp_tissue *= float_saturation_multiplier; @@ -2050,7 +2053,7 @@ pres_surface = int_I_pres_surface * 0.001; ppN2 = N2_ratio * (pres_surface - ppWater); int_O_desaturation_time = 0; - float_desaturation_multiplier = char_I_desaturation_multiplier / 142.0; // new in v.101 (70,42%/100.=142) + float_desaturation_multiplier = char_I_desaturation_multiplier * (0.01 * SURFACE_DESAT_FACTOR); ptr = &buhlmann_ht[0]; for(ci=0; ci