Mercurial > public > hwos_code
diff src/p2_deco.c @ 522:4d70a93b18cb
BUGFIX: Impossible fixed-ppO2 (e.g. 1,6bar in 3m) used for tissue calculations
author | heinrichsweikamp |
---|---|
date | Fri, 04 Aug 2017 16:19:50 +0200 |
parents | 06e9370c6d75 |
children | 015b7fdd90a7 |
line wrap: on
line diff
--- a/src/p2_deco.c Fri Aug 04 16:01:28 2017 +0200 +++ b/src/p2_deco.c Fri Aug 04 16:19:50 2017 +0200 @@ -963,8 +963,6 @@ deco_diluent -= const_ppO2; deco_diluent /= calc_N2_ratio + calc_He_ratio; - if (deco_diluent > temp_deco) - deco_diluent = temp_deco; } if( deco_diluent > ppWater ) @@ -1183,8 +1181,6 @@ pres_diluent /= N2_ratio + He_ratio; if( pres_diluent < 0.0 ) pres_diluent = 0.0; - if( pres_diluent > pres_respiration ) - pres_diluent = pres_respiration; char_O_diluent = (unsigned char)(pres_diluent/pres_respiration*100.0 + 0.5);