diff code_part1/OSTC_code_c_part2/p2_deco.c @ 290:4dbff2aa31ee

Hunting for refusing to ignore disabled gas in list... + Keep gaslist in order.
author JeanDo
date Fri, 22 Apr 2011 00:13:39 +0200
parents 9feb224f6871
children 21a0f7393468
line wrap: on
line diff
--- a/code_part1/OSTC_code_c_part2/p2_deco.c	Thu Apr 21 20:09:09 2011 +0200
+++ b/code_part1/OSTC_code_c_part2/p2_deco.c	Fri Apr 22 00:13:39 2011 +0200
@@ -971,8 +971,9 @@
         if( N2 == char_I_deco_N2_ratio[j] 
          && He == char_I_deco_He_ratio[j] 
         )                                 
-        {                                 
-            temp_depth_limit = sim_gas_last_depth = char_I_deco_gas_change[j];
+        {
+            if( char_I_deco_gas_change[j] )
+                temp_depth_limit = sim_gas_last_depth = char_I_deco_gas_change[j];
             sim_gas_last_used  = j+1;
             break;
         }