Planner. Strange behavior while changing deco mixes.

Robert C. Helling helling at lmu.de
Thu Feb 21 07:40:24 PST 2013


On Wed, 20 Feb 2013, Salvador Cuñat wrote:

> Hi.
>
> I was just testing the recent patches to the planner and realized that
> when changing deco mixes (EAN 50 - 21 m  and  O2 - 6m) the calculated
> plan diverges widely from the calculated ceiling.
> While at the 21 m stop the profile shows an EAD of 21m, when it must be
> 13,29 m  (if I'm not wrong), and an strangely long duration, then jumps
> to a very brief 15m stop, without 18m.
> Something very similar on the 6m stop except for the EAD which is a
> correct  0m in this case, and don't loose the 3m stop.
>
> Attached is a printout with the simulated dive.

The problem that when reaching the gas change depth and computing the stop 
time, no gas change event is created yet but time_at_last_depth tries to 
determine the gas for the stop from events.

Here is a patch that adds o2 and he as parameters of that function instead 
of the events logic. Dirk, I do not completely understand your gas logic 
and do not understand why you did it your way previously. But this seems 
to make sense for me. If you like:

Signed-off-by: Robert C. Helling <helling at atdotde.de>

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
print "Just another   Phone: +49 89 2180-4523  Theresienstr. 39, rm. B339
     stupid .sig\n";   http://www.atdotde.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gaschange.patch
Type: text/x-diff
Size: 1654 bytes
Desc: 
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20130221/ee54a1be/attachment.patch>


More information about the subsurface mailing list