From 45ed0ec757e0fd51b9dda01b76c7f2dad9cb82ac Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Wed, 24 Feb 2016 12:14:53 -0800 Subject: gas pressures: use an actual compressibility table for air We could in theory make this dependent on the gasmix, but for now let's just assume (incorrectly) that everything we breathe acts like air. Signed-off-by: Linus Torvalds Signed-off-by: Dirk Hohndel --- subsurface-core/dive.h | 1 + 1 file changed, 1 insertion(+) (limited to 'subsurface-core/dive.h') diff --git a/subsurface-core/dive.h b/subsurface-core/dive.h index 08100a270..0f5c43451 100644 --- a/subsurface-core/dive.h +++ b/subsurface-core/dive.h @@ -129,6 +129,7 @@ extern int units_to_sac(double volume); /* Volume in mliter of a cylinder at pressure 'p' */ extern int gas_volume(cylinder_t *cyl, pressure_t p); +extern double gas_compressibility_factor(struct gasmix *gas, double bar); static inline int get_o2(const struct gasmix *mix) -- cgit v1.2.3-70-g09d2