comparison src/p2_deco.c @ 114:109df032cc54

minor fix: assert should pass for pure helium diluant
author heinrichsweikamp
date Mon, 23 Jun 2014 17:44:18 +0200
parents c61b7a4e317c
children 72259a79eac2
comparison
equal deleted inserted replaced
113:f3062a611eef 114:109df032cc54
821 calc_N2_ratio = char_I_deco_N2_ratio[sim_gas_last_used-1] * 0.01; 821 calc_N2_ratio = char_I_deco_N2_ratio[sim_gas_last_used-1] * 0.01;
822 calc_He_ratio = char_I_deco_He_ratio[sim_gas_last_used-1] * 0.01; 822 calc_He_ratio = char_I_deco_He_ratio[sim_gas_last_used-1] * 0.01;
823 } 823 }
824 824
825 assert( 0.0 <= calc_N2_ratio && calc_N2_ratio <= 0.95 ); 825 assert( 0.0 <= calc_N2_ratio && calc_N2_ratio <= 0.95 );
826 assert( 0.0 <= calc_He_ratio && calc_He_ratio <= 0.95 ); 826 assert( 0.0 <= calc_He_ratio && calc_He_ratio <= 1.00 );
827 assert( (calc_N2_ratio + calc_He_ratio) <= 1.00 ); 827 assert( (calc_N2_ratio + calc_He_ratio) <= 1.00 );
828 } 828 }
829 829
830 ////////////////////////////////////////////////////////////////////////////// 830 //////////////////////////////////////////////////////////////////////////////
831 // 831 //
1062 // 1062 //
1063 void calc_hauptroutine_update_tissues(void) 1063 void calc_hauptroutine_update_tissues(void)
1064 { 1064 {
1065 assert( 0.00 <= N2_ratio && N2_ratio <= 1.00 ); 1065 assert( 0.00 <= N2_ratio && N2_ratio <= 1.00 );
1066 assert( 0.00 <= He_ratio && He_ratio <= 1.00 ); 1066 assert( 0.00 <= He_ratio && He_ratio <= 1.00 );
1067 assert( (N2_ratio + He_ratio) <= 0.95 ); 1067 assert( (N2_ratio + He_ratio) <= 1.00 );
1068 assert( 0.800 < pres_respiration && pres_respiration < 14.0 ); 1068 assert( 0.800 < pres_respiration && pres_respiration < 14.0 );
1069 1069
1070 pres_diluent = pres_respiration; 1070 pres_diluent = pres_respiration;
1071 if( char_I_const_ppO2 != 0 ) 1071 if( char_I_const_ppO2 != 0 )
1072 { 1072 {