summaryrefslogtreecommitdiffstats
path: root/core/dive.h
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2017-05-12 15:36:24 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-05-26 15:52:04 -0700
commitbb6ceba4ac0310c504f931674a71e9e77c0afa1c (patch)
tree2a060b136d32e7ecdfd5b8b0314415595e675cbe /core/dive.h
parente6d884cf26161df65c2b4b8c39d6b4133760537b (diff)
downloadsubsurface-bb6ceba4ac0310c504f931674a71e9e77c0afa1c.tar.gz
Compute and display gas density
This appears to be critical for work of breathing so it might be worthwhile to compute. So far only in infobox. For background, see https://www.youtube.com/watch?v=QBajM3xmOtc Signed-off-by: Robert C. Helling <helling@atdotde.de>
Diffstat (limited to 'core/dive.h')
-rw-r--r--core/dive.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/dive.h b/core/dive.h
index fa89edc44..c2ae1e36d 100644
--- a/core/dive.h
+++ b/core/dive.h
@@ -139,6 +139,8 @@ extern int units_to_sac(double volume);
extern int gas_volume(cylinder_t *cyl, pressure_t p);
extern double gas_compressibility_factor(struct gasmix *gas, double bar);
extern double isothermal_pressure(struct gasmix *gas, double p1, int volume1, int volume2);
+extern double gas_density(struct gasmix *gas, int pressure);
+
static inline int get_o2(const struct gasmix *mix)