On 14 May, 2014 - Robert Helling wrote: > > On 14.05.2014, at 00:32, Anton Lundin <[email protected]> wrote: > > > We use mod calculations on multiple places, so make a separate helper > > from it with proper types. > > Good idea. Some people like to use different max ppO2’s during bottom time > (e.g. 1.4bar) and deco (1.6 bar, this one for example translates EAN50 to > 21m). We should have separate config variables for these. >
I went a little bit hard on trying to use proper units so this code doesn't build on older compilers anymore, but we could go a bit less haywire on the types and apply something like this. //Anton -- Anton Lundin +46702-161604 _______________________________________________ subsurface mailing list [email protected] http://lists.hohndel.org/cgi-bin/mailman/listinfo/subsurface
