[PATCH] Move mod calculations to a separate helper

Anton Lundin glance at acc.umu.se
Wed May 14 04:44:22 PDT 2014


On 14 May, 2014 - Robert Helling wrote:

> 
> On 14.05.2014, at 00:32, Anton Lundin <glance at acc.umu.se> 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


More information about the subsurface mailing list