changeset 782:6f54104ea0ee

minor fix: assert should pass for pure helium diluant
author JeanDo
date Sun, 15 Jun 2014 17:48:10 +0200
parents a754942cdbb8
children e57e8045527d
files code_part1/OSTC_code_c_part2/p2_deco.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/code_part1/OSTC_code_c_part2/p2_deco.c	Tue Feb 11 12:39:07 2014 +0100
+++ b/code_part1/OSTC_code_c_part2/p2_deco.c	Sun Jun 15 17:48:10 2014 +0200
@@ -922,7 +922,7 @@
     }
 
     assert( 0.0 <= calc_N2_ratio && calc_N2_ratio <= 0.95 );
-    assert( 0.0 <= calc_He_ratio && calc_He_ratio <= 0.95 );
+    assert( 0.0 <= calc_He_ratio && calc_He_ratio <= 1.00 );
     assert( (calc_N2_ratio + calc_He_ratio) <= 1.00 );
 }
 
@@ -1164,7 +1164,7 @@
 {
     assert( 0.00 <= N2_ratio && N2_ratio <= 1.00 );
     assert( 0.00 <= He_ratio && He_ratio <= 1.00 );
-    assert( (N2_ratio + He_ratio) <= 0.95 );
+    assert( (N2_ratio + He_ratio) <= 1.00 );
     assert( 0.800 < pres_respiration && pres_respiration < 14.0 );
 
     pres_diluent = pres_respiration;