diff code_part1/OSTC_code_c_part2/p2_deco.c @ 700:fdeb01351f23

patch2
author heinrichsweikamp
date Tue, 05 Mar 2013 07:26:24 +0100
parents 5bf4f526f552
children
line wrap: on
line diff
--- a/code_part1/OSTC_code_c_part2/p2_deco.c	Sun Feb 24 20:29:47 2013 +0100
+++ b/code_part1/OSTC_code_c_part2/p2_deco.c	Tue Mar 05 07:26:24 2013 +0100
@@ -1366,6 +1366,11 @@
         if( temp_deco < sim_lead_tissue_limit )
         {
             temp_deco = old_deco;           // Restore last correct depth,
+            while (sim_lead_tissue_limit < temp_deco) {
+                temp_deco -= (10.0*METER_TO_BAR) / 30.0;   // up for 2s with 10m/min
+                sim_alveolar_presures();        // temp_deco --> ppN2/ppHe
+                sim_tissue(0);                  // and update tissues for 1 min.
+            }
             break;                          // Do no spend a minute more.
         }