diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2016-02-24 12:14:53 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-02-25 01:22:32 +0100 |
commit | 45ed0ec757e0fd51b9dda01b76c7f2dad9cb82ac (patch) | |
tree | 310ac70d773dfa23d5826ef958fc78e2cb446d05 /subsurface-core/dive.h | |
parent | adaeb506b7a1485cab741f12450abeb76e109276 (diff) | |
download | subsurface-45ed0ec757e0fd51b9dda01b76c7f2dad9cb82ac.tar.gz |
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 <torvalds@linux-foundation.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface-core/dive.h')
-rw-r--r-- | subsurface-core/dive.h | 1 |
1 files changed, 1 insertions, 0 deletions
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) |