diff code_part1/OSTC_code_c_part2/p2_deco.c @ 541:6626a6c4eda3

BUGFIX decoplan: ppO2 for CNS is inspired, alveolar (ie. no ppWater correction).
author JeanDo
date Mon, 09 Jan 2012 23:53:59 +0100
parents 9e838e0b3749
children 896b6346ccd2
line wrap: on
line diff
--- 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;