[CCR PATCH] PO2 Calculations extracted to separate function.

Dirk Hohndel dirk at hohndel.org
Thu Sep 18 06:21:09 PDT 2014


On Mon, Sep 15, 2014 at 04:05:12PM +0200, Robert Helling wrote:
> 
> On 15.09.2014, at 12:09, Robert Helling <helling at atdotde.de> wrote:
> 
> Hi everybody,
> 
> > To me, it would make much more sense to have a helper function that returns all three partial pressures given a gas mix and an ambient pressure (and a measured pO2 and possibly another variable indicating the type of dive i.e. OC, CCR or PSCR).
> > 
> > BTW, code with a similar function (i.e. get partial pressures from an ambient pressure and gas mix) are also found in add_segemnt in deco.c. There, you also want to use your helper functions.
> > 
> 
> 
> this patch demonstrates how I would do this.

That looks really useful. I'll push this in a few minutes when I'm done
searching for all the other patches that I've missed :-/

/D


More information about the subsurface mailing list