Mercurial > public > mk2
comparison 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 |
comparison
equal
deleted
inserted
replaced
696:59a9402ba6dd | 700:fdeb01351f23 |
---|---|
1364 | 1364 |
1365 // Did we reach deepest remaining stop ? | 1365 // Did we reach deepest remaining stop ? |
1366 if( temp_deco < sim_lead_tissue_limit ) | 1366 if( temp_deco < sim_lead_tissue_limit ) |
1367 { | 1367 { |
1368 temp_deco = old_deco; // Restore last correct depth, | 1368 temp_deco = old_deco; // Restore last correct depth, |
1369 while (sim_lead_tissue_limit < temp_deco) { | |
1370 temp_deco -= (10.0*METER_TO_BAR) / 30.0; // up for 2s with 10m/min | |
1371 sim_alveolar_presures(); // temp_deco --> ppN2/ppHe | |
1372 sim_tissue(0); // and update tissues for 1 min. | |
1373 } | |
1369 break; // Do no spend a minute more. | 1374 break; // Do no spend a minute more. |
1370 } | 1375 } |
1371 | 1376 |
1372 // Did we reach surface ? | 1377 // Did we reach surface ? |
1373 // NOTE: we should round BEFORE checking surface is reached. | 1378 // NOTE: we should round BEFORE checking surface is reached. |