Mercurial > public > mk2
comparison code_part1/OSTC_code_c_part2/p2_deco.c @ 782:6f54104ea0ee
minor fix: assert should pass for pure helium diluant
author | JeanDo |
---|---|
date | Sun, 15 Jun 2014 17:48:10 +0200 |
parents | 3b1af9891019 |
children | e57e8045527d |
comparison
equal
deleted
inserted
replaced
769:a754942cdbb8 | 782:6f54104ea0ee |
---|---|
920 calc_N2_ratio = char_I_deco_N2_ratio[sim_gas_last_used-1] * 0.01; | 920 calc_N2_ratio = char_I_deco_N2_ratio[sim_gas_last_used-1] * 0.01; |
921 calc_He_ratio = char_I_deco_He_ratio[sim_gas_last_used-1] * 0.01; | 921 calc_He_ratio = char_I_deco_He_ratio[sim_gas_last_used-1] * 0.01; |
922 } | 922 } |
923 | 923 |
924 assert( 0.0 <= calc_N2_ratio && calc_N2_ratio <= 0.95 ); | 924 assert( 0.0 <= calc_N2_ratio && calc_N2_ratio <= 0.95 ); |
925 assert( 0.0 <= calc_He_ratio && calc_He_ratio <= 0.95 ); | 925 assert( 0.0 <= calc_He_ratio && calc_He_ratio <= 1.00 ); |
926 assert( (calc_N2_ratio + calc_He_ratio) <= 1.00 ); | 926 assert( (calc_N2_ratio + calc_He_ratio) <= 1.00 ); |
927 } | 927 } |
928 | 928 |
929 ////////////////////////////////////////////////////////////////////////////// | 929 ////////////////////////////////////////////////////////////////////////////// |
930 // | 930 // |
1162 // | 1162 // |
1163 void calc_hauptroutine_update_tissues(void) | 1163 void calc_hauptroutine_update_tissues(void) |
1164 { | 1164 { |
1165 assert( 0.00 <= N2_ratio && N2_ratio <= 1.00 ); | 1165 assert( 0.00 <= N2_ratio && N2_ratio <= 1.00 ); |
1166 assert( 0.00 <= He_ratio && He_ratio <= 1.00 ); | 1166 assert( 0.00 <= He_ratio && He_ratio <= 1.00 ); |
1167 assert( (N2_ratio + He_ratio) <= 0.95 ); | 1167 assert( (N2_ratio + He_ratio) <= 1.00 ); |
1168 assert( 0.800 < pres_respiration && pres_respiration < 14.0 ); | 1168 assert( 0.800 < pres_respiration && pres_respiration < 14.0 ); |
1169 | 1169 |
1170 pres_diluent = pres_respiration; | 1170 pres_diluent = pres_respiration; |
1171 if( char_I_const_ppO2 != 0 ) // new in v.101 | 1171 if( char_I_const_ppO2 != 0 ) // new in v.101 |
1172 { | 1172 { |