[CCR PATCH] PO2 Calculations extracted to separate function.
Robert Helling
helling at atdotde.de
Mon Sep 15 07:05:12 PDT 2014
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.
Best
Robert
--
.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oO
Robert C. Helling Elite Master Course Theoretical and Mathematical Physics
Scientific Coordinator
Ludwig Maximilians Universitaet Muenchen, Dept. Physik
Phone: +49 89 2180-4523 Theresienstr. 39, rm. B339
http://www.atdotde.de
Enhance your privacy, use cryptography! My PGP keys have fingerprints
A9D1 A01D 13A5 31FA 6515 BB44 0820 367C 36BC 0C1D and
DCED 37B6 251C 7861 270D 5613 95C7 9D32 9A8D 9B8F
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20140915/d0755453/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Helper-function-for-partial-pressure-calculation.patch
Type: application/octet-stream
Size: 14710 bytes
Desc: not available
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20140915/d0755453/attachment-0001.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20140915/d0755453/attachment-0003.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 495 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20140915/d0755453/attachment-0001.sig>
More information about the subsurface
mailing list