diff options
author | Henrik Brautaset Aronsen <subsurface@henrik.synth.no> | 2014-06-22 16:41:44 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-06-23 06:48:54 +0800 |
commit | 630ec88dd4a096fa39ad95b54a7dbfa760a212d9 (patch) | |
tree | 0a4cc6f336c92dc7ff2dee828aa88a45736f903e /profile.c | |
parent | 21916d67de37fcca027fa392995c24084c954bc1 (diff) | |
download | subsurface-630ec88dd4a096fa39ad95b54a7dbfa760a212d9.tar.gz |
Be more consistent in partial pressure naming
Lets just use pO₂ instead of PO2, ppO2, ppO₂, PO₂.
They all mean the same, but it's better to be
consistent
Signed-off-by: Henrik Brautaset Aronsen <subsurface@henrik.synth.no>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'profile.c')
-rw-r--r-- | profile.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1141,7 +1141,7 @@ static void calculate_gas_information_new(struct dive *dive, struct plot_info *p fhe = get_he(&dive->cylinder[cylinderindex].gasmix); if (entry->po2) { - /* we have an O2 partial pressure in the sample - so this + /* we have an O₂ partial pressure in the sample - so this * is likely a CC dive... use that instead of the value * from the cylinder info */ if (entry->po2 >= amb_pressure || fo2 == 1000) { @@ -1160,10 +1160,10 @@ static void calculate_gas_information_new(struct dive *dive, struct plot_info *p /* Calculate MOD, EAD, END and EADD based on partial pressures calculated before * so there is no difference in calculating between OC and CC - * END takes O2 + N2 (air) into account ("Narcotic" for trimix dives) - * EAD just uses N2 ("Air" for nitrox dives) */ - pressure_t modppO2 = { .mbar = (int) (prefs.modppO2 * 1000) }; - entry->mod = (double) gas_mod(&dive->cylinder[cylinderindex].gasmix, modppO2).mm; + * END takes O₂ + N₂ (air) into account ("Narcotic" for trimix dives) + * EAD just uses N₂ ("Air" for nitrox dives) */ + pressure_t modpO2 = { .mbar = (int) (prefs.modpO2 * 1000) }; + entry->mod = (double) gas_mod(&dive->cylinder[cylinderindex].gasmix, modpO2).mm; entry->end = (entry->depth + 10000) * (1000 - fhe) / 1000.0 - 10000; entry->ead = (entry->depth + 10000) * (1000 - fo2 - fhe) / (double)N2_IN_AIR - 10000; entry->eadd = (entry->depth + 10000) * |