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:
Berthold Stoeger 2021-01-01 01:30:13 +01:00 committed by bstoeger
parent 1270d94701
commit 60999e3a39
2 changed files with 2 additions and 1 deletions

View file

@ -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;
}