mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: make gasmix_is_invalid globally accessible
The statistics module will use that to bin dives by gasmix. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
1270d94701
commit
60999e3a39
2 changed files with 2 additions and 1 deletions
|
@ -22,7 +22,7 @@ bool isobaric_counterdiffusion(struct gasmix oldgasmix, struct gasmix newgasmix,
|
|||
return get_he(oldgasmix) > 0 && results->dN2 > 0 && results->dHe < 0 && get_he(oldgasmix) && results->dN2 > 0 && 5 * results->dN2 > -results->dHe;
|
||||
}
|
||||
|
||||
static bool gasmix_is_invalid(struct gasmix mix)
|
||||
bool gasmix_is_invalid(struct gasmix mix)
|
||||
{
|
||||
return mix.o2.permille < 0;
|
||||
}
|
||||
|
|
|
@ -69,6 +69,7 @@ extern fraction_t get_gas_component_fraction(struct gasmix mix, enum gas_compone
|
|||
extern void fill_pressures(struct gas_pressures *pressures, double amb_pressure, struct gasmix mix, double po2, enum divemode_t dctype);
|
||||
|
||||
extern bool gasmix_is_air(struct gasmix gasmix);
|
||||
extern bool gasmix_is_invalid(struct gasmix mix);
|
||||
extern enum gastype gasmix_to_type(struct gasmix mix);
|
||||
extern const char *gastype_name(enum gastype type);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue