Hi, here is the request for the basic vpm algorithm. Right now it doesn't include Boyle's law compensation so the deco plans it generates can be too short in some situations.
The following changes since commit f763da66b3db17347954272b9f856df6f8b9888d: Implement planner option to switch only at required stops (2015-06-26 06:14:28 -0700) are available in the git repository at: https://github.com/Slagvi/subsurface.git beta-vpm for you to fetch changes up to 2ce3f0289d446a1b32a932128f1640dc0bc11291: Cleaned up VPM-B work, improved coding style, removed redundant conditions. (2015-06-26 20:47:13 +0200) ---------------------------------------------------------------- Jan Darowski (11): Added basic VPM-B deco algorithm settings. Added crushing pressure state and is_vpmb parameter. Added basic crushing pressure calculation, without calculating current radius in the impermeable part. Added simple radius calculation for crushing pressure. Using bin search with const number of iterations. Refactored crushing pressure a little bit. Added simple nuclear regeneration. All the parameters for the deco should be ready. Probably units adjustments needed. Fixed vpmb rs value in nuclear regeneration. VPM-B improvements: Scaled constants Added initial supersaturation calculation Fixed minor calculation bugs VPM-B critical volume algorithm implemented VPM-B CVA fixed. Added ui option to choose deco algorithm. Cleaned up VPM-B work, improved coding style, removed redundant conditions. deco.c | 168 +++++++++++++++++++++++ dive.h | 4 + planner.c | 298 ++++++++++++++++++++++++----------------- pref.h | 8 +- qt-models/diveplannermodel.cpp | 6 +- qt-models/diveplannermodel.h | 2 +- qt-ui/diveplanner.cpp | 20 ++- qt-ui/diveplanner.h | 2 + qt-ui/plannerSettings.ui | 23 +++- subsurfacestartup.c | 4 +- 10 files changed, 398 insertions(+), 137 deletions(-) _______________________________________________ subsurface mailing list subsurface@subsurface-divelog.org http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface