[PATCH] Re: Test VPM-B

Rick Walsh rickmwalsh at gmail.com
Thu Aug 27 06:50:08 PDT 2015


Robert,

On 27 August 2015 at 22:26, Robert C. Helling <helling at atdotde.de> wrote:

> let me add to this confusion: In my branch, I had computed the first stop
> depth for each round of the CVA, as done in this patch:
>
> I don't know this does add to confusion.  It suggests that doing the
first_ceiling_pressure calculation inside the CVA loop does work, and my
hypothesizing earlier as to why it wouldn't work (for me), was incorrect.
All along it could be that the problem was that not all the variables had
been initialized properly.


>
> This makes all but one test pass and even the fail I would say (looking at
> the spread sheet) actually passes but the comparison is for a wrong goal.
>
> I don't think the goal is wrong: the Fortran code (original reference
implementation) and MultiDeco (probably the de-facto standard if such a
thing exists) both calculate 95 minutes for the 60 m for 30 min dive with
air and 50%.  I would take those runtimes over GUE DecoPlanner (97
minutes), which has some deliberate tweaks to the algorithm.  As it isn't
open, we can't really see what it does differently.

None of that changes that this is a great improvement.  With the Subsurface
calculating a runtime of 98 minutes (c.f 95 minutes, or a debatable 97
minutes), we can live with being slightly more conservative than others on
one test.


> With this, when I now remove that vpmb_start_gradient I get a totally off
> test (which is what I remembered adding this line in the first place, I
> think it was to set the bottom pressure, but right now I haven’t gotten to
> confirm this). So, I would argue for taking this patch here and keeping the
> call.
>

Agreed, and verified that removing the vpmb_start_gradient call messes
things up.  More precisely, it appears the call to vpmb_next_gradient
doesn't do the right thing if initial_he_gradient and initial_n2_gradient
haven't been defined.

I think your patch makes obsolete the earlier calculation of
first_stop(/ceiling)_pressure immediately before the CVA loop commences.

For some reason, again I couldn't apply your patch with git so I had to
test it manually.

Cheers,

Rick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150827/dee136a3/attachment.html>


More information about the subsurface mailing list