# HG changeset patch # User JeanDo # Date 1326149639 -3600 # Node ID 6626a6c4eda35a2ce1bc355f2fe975fb9eaba2ad # Parent 9e838e0b374911fa576c712a80d2a012e9c8663a BUGFIX decoplan: ppO2 for CNS is inspired, alveolar (ie. no ppWater correction). diff -r 9e838e0b3749 -r 6626a6c4eda3 code_part1/OSTC_code_c_part2/p2_deco.c --- a/code_part1/OSTC_code_c_part2/p2_deco.c Mon Jan 09 23:46:18 2012 +0100 +++ b/code_part1/OSTC_code_c_part2/p2_deco.c Mon Jan 09 23:53:59 2012 +0100 @@ -2210,7 +2210,7 @@ //---- Ascent to surface delay // NOTE: count as if time is spent with bottom pressure, // AND the bottom gas - actual_ppO2 = (pres_surface + char_I_bottom_depth * METER_TO_BAR - ppWater) + actual_ppO2 = (pres_surface + char_I_bottom_depth * METER_TO_BAR) * (1.0 - calc_N2_ratio - calc_He_ratio); if( actual_ppO2 < 0.0 ) actual_ppO2 = 0.0; if( actual_ppO2 > 2.50 ) actual_ppO2 = 2.55; @@ -2239,7 +2239,7 @@ gas_switch_set(); //---- Convert Depth and N2_ratio to ppO2 - actual_ppO2 = (pres_surface + temp_depth_limit * METER_TO_BAR - ppWater) + actual_ppO2 = (pres_surface + temp_depth_limit * METER_TO_BAR) * (1.0 - calc_N2_ratio - calc_He_ratio); if( actual_ppO2 < 0.0 ) actual_ppO2 = 0.0; if( actual_ppO2 > 2.50 ) actual_ppO2 = 2.55;