diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-10-02 19:40:42 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-10-03 10:29:15 -0700 |
commit | 34730b898b41b19476eaa61f20273e267d63b7e8 (patch) | |
tree | 6471cd066bc29097e9ba58082d5d63da35491f6f /core/gas.h | |
parent | cd22b86bf8cf6c5f521bc9244b4a21537b5fea44 (diff) | |
download | subsurface-34730b898b41b19476eaa61f20273e267d63b7e8.tar.gz |
core: make gas type enum globally available
The deco-routines used an enum to pass around the inert gas
type. Make that globally available and make it include O2.
This will be used in a future commit to generalize access
of gas fractions.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/gas.h')
-rw-r--r-- | core/gas.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/gas.h b/core/gas.h index f5d948da0..316f4d3de 100644 --- a/core/gas.h +++ b/core/gas.h @@ -10,6 +10,8 @@ extern "C" { #include <stdbool.h> #endif +enum gas_component { N2, HE, O2 }; + // o2 == 0 && he == 0 -> air // o2 < 0 -> invalid struct gasmix { |