# HG changeset patch # User JeanDo # Date 1297019028 -3600 # Node ID ae3a83982ab2f2b7c64d2b478b8b3fa04552d430 # Parent 016c45a0caaf9e8ee378e0cf03ab7a153b0a802a BUGFIX NDL blocked to 11' (bb #9) diff -r 016c45a0caaf -r ae3a83982ab2 code_part1/OSTC_code_c_part2/p2_deco.c --- a/code_part1/OSTC_code_c_part2/p2_deco.c Sun Feb 06 19:32:11 2011 +0100 +++ b/code_part1/OSTC_code_c_part2/p2_deco.c Sun Feb 06 20:03:48 2011 +0100 @@ -1385,39 +1385,35 @@ { backup_sim_pres_tissue(); sim_tissue_10min(); - char_O_nullzeit += 10; if (char_I_deco_model == 1) temp1 = GF_high * sim_pres_gtissue_diff + sim_pres_gtissue; else temp1 = sim_pres_gtissue_limit; if (temp1 > temp_surface) // changed in v.102 , if guiding tissue can not be exposed to surface pressure immediately - loop = 255; + { + restore_sim_pres_tissue(); + break; + } + // Validate once we know its good. + char_O_nullzeit += 10; } - if (loop == 255) - { - restore_sim_pres_tissue(); - char_O_nullzeit -= 10; - } //if loop == 255 - if (char_O_nullzeit < 60) { for(loop=1; loop <= 10; loop++) { sim_tissue_1min(); - char_O_nullzeit = char_O_nullzeit + 1; if (char_I_deco_model == 1) temp1 = GF_high * sim_pres_gtissue_diff + sim_pres_gtissue; else temp1 = sim_pres_gtissue_limit; if (temp1 > temp_surface) // changed in v.102 , if guiding tissue can not be exposed to surface pressure immediately - loop = 255; + break; + char_O_nullzeit++; } - if (loop == 255) - char_O_nullzeit = char_O_nullzeit - 1; - } // if char_O_nullzeit < 60 -} //calc_nullzeit + } +} ////////////////////////////////////////////////////////////////////////////// // backup_sim_pres_tissue diff -r 016c45a0caaf -r ae3a83982ab2 code_part1/OSTC_code_c_part2/p2_deco.o Binary file code_part1/OSTC_code_c_part2/p2_deco.o has changed