Gases in divelist

Dirk Hohndel dirk at hohndel.org
Mon Mar 18 07:35:19 PDT 2013


"Robert C. Helling" <helling at lmu.de> writes:

> On Sun, 17 Mar 2013, Dirk Hohndel wrote:
>
>> Dirk Hohndel <dirk at hohndel.org> writes:
>>
>> Never mind. I had a couple of hours today and since this wasn't enough
>> for any of the big things on my todo list I instead added this feature.
>
> Cool. Here is a patch that restricts the gases listed in the divelist to 
> those that are actually used. I seem to have the indentation now under 
> control but I am not sure about the logic:
>
> 1) First gas (with index 0) is always used.

I'm not 100% sure that's true. For example, with an OSTC you can tell
the DC which gas you'll be starting with. The way to tell is if there is
an event at time=0 that switches to a different gas...

> 2) If there is a gas switch event, the new gas is also used (determined by 
> walking the list of dive computers and then the list of events).

Yes

I applied as is - can you send an update that fixes the 'first gas'
assumption, please?

/D


More information about the subsurface mailing list