<div dir="ltr"><div dir="auto"><div>Stefan, Robert,<br><div class="gmail_extra"><br><div class="gmail_quote">On 18 Sep. 2017 18:40, "Robert Helling" <<a href="mailto:helling@atdotde.de" target="_blank">helling@atdotde.de</a>> wrote:<br type="attribution"><blockquote class="gmail-m_4003485238753830740quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;">Stefan,<div><div class="gmail-m_4003485238753830740quoted-text"><br><div><blockquote type="cite"><div>On 17. Sep 2017, at 22:47, Stefan Fuchs <<a href="mailto:sfuchs@gmx.de" target="_blank">sfuchs@gmx.de</a>> wrote:</div><br class="gmail-m_4003485238753830740m_6158552333674065611Apple-interchange-newline"><div><span style="font-family:Menlo-Regular;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);float:none;display:inline">I see a somehow unexpected result:</span><br style="font-family:Menlo-Regular;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)"><span style="font-family:Menlo-Regular;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);float:none;display:inline">The situation that the plotted ceiling changes in respect to the spike being present or not when clicking at the dives in a different sequence is gone. So resetting additional things seems to be the correct approach because the result of the deco calculation really shouldn't depend on the sequence the dives are selected.</span><br style="font-family:Menlo-Regular;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)"><br style="font-family:Menlo-Regular;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)"><span style="font-family:Menlo-Regular;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);float:none;display:inline">But: The spike is now only gone for the one specific dive (#710 in my example) where I discovered this "unstable" results. Many of my other dives now still always show such a spike at the beginning of the deco ceiling exactly as before.</span><br style="font-family:Menlo-Regular;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)"><span style="font-family:Menlo-Regular;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);float:none;display:inline">I have the fear we see two different issues here.</span><br style="font-family:Menlo-Regular;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)"><span style="font-family:Menlo-Regular;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);float:none;display:inline">I now discovered<span class="gmail-m_4003485238753830740m_6158552333674065611Apple-converted-space"> </span></span><a href="http://s.th/" style="font-family:Menlo-Regular;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)" target="_blank">s.th</a><span style="font-family:Menlo-Regular;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);float:none;display:inline">. else which could help solving the issue: If a plan a dive in the planner the deco ceiling displayed shows no spike. If I save the dive and the very same profile is displayed outside the planner in the "normal" main window view the spike is there. I will send you some pictures tomorrow and try to generate some debug output.</span><br style="font-family:Menlo-Regular;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)"><br style="font-family:Menlo-Regular;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)"><span style="font-family:Menlo-Regular;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);float:none;display:inline">One more important hint I maybe didn't mention up to now: The spikes in the profiles are only present if I enable " show ceiling in 3m steps".</span><br style="font-family:Menlo-Regular;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)"></div></blockquote></div><div><br></div></div>Ah, that’s an important clue: Turning on the steps let’s be see the spike as well. Apparently, it comes from the 5min tissue which has a ceiling of a few centimetres which gets rounded to 3m. </div><div><br></div><div>We have to look into this a bit more to properly understand it. It could well come from the way that we adopted the VPM model to work for logged dives (which do not have a well defined bottom time and then stops). Maybe Rick has some ideas, he wrote that part.</div></div></blockquote></div></div></div><div dir="auto"><br></div><div dir="auto">Unfortunately I don't have much time to look into this at the moment, and I haven't even had a chance to try to reproduce it. My guess is that the spike in the ceiling early in the dive is related to either:<br>- the Boyle's law compensation, which relies on deepest ceiling  (or first deco stop depth in the original VPM-B definition/implementation which was essentially the same thing for a planned dive that ignores ascent legs like Baker's Fortran program, but isn't defined for a real dive), but is not defined in the literature for points leading up to the start of the ascent (the VPM-B literature is all about planning dives, so the ceiling during the bottom phase is not considered) and/or<br></div><div>- the Critical Volume Algorithm (CVA), which is an iterative process to determine an allowable "over" gradient; the iteration converges according to total ascent time - outside of the planner we use the TTS calculation (which calls the planning algorithm) for this<br></div><div dir="auto"><br></div><div>Obviously, displaying the ceiling in 3m stop intervals means that at the end of the no deco time a 1mm fast-tissue ceiling could be shown as a 3m ceiling spike, then disappear suddenly if the diver ascends a bit.  But by your report it sounds like this is changing the calculation rather than just rounding up to 3m steps in the ceiling.<br><br></div><div dir="auto"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail-m_4003485238753830740quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br><div style="overflow-wrap: break-word;"><div><br></div><div>Another observation:</div><div><br></div><div>Start from an empty log. Plan a VPMB+2 dive to 30m for 20m. -> no spike</div><div>Save. In the logbook, this dive has a spike.</div><div>Edit dive in planner, spike gone.</div><div>Save again, spike still gone.</div><div>Save to xml, quit subsurface</div><div>Open Subsurface with this dive: spike reappeaered.</div><div>Edit dive in planner: much less ceiling</div><div>Delete all computed waypoints ceiling normal again</div><div>Save, no spike<br><br></div></div></blockquote></div>This looks like we're failing to calculate a parameter until we open the planner.  I suspect it's the CVA part, and we start off assuming TTS = 0.  Out of curiosity, is the behaviour the same whether or not TTS is enabled or not in the profile?<br><br></div><div class="gmail_extra">Also, could you check with a binary/release from last year to confirm this isn't new?  My last VPM-B related commit was 22afd4a1 in April 2016.<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Cheers,<br><br></div><div class="gmail_extra">Rick<br></div></div></div>
</div>