diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-05-26 13:28:18 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-05-26 13:28:18 -0700 |
commit | 9cc8e39d425b7f64c4c5c2a4226ba581550076f6 (patch) | |
tree | c759a26f54e50d46de25f3fa8a6e57c593dede8d /planner.c | |
parent | a61c04bb584311fd7ebe397f5e5f5bd159b18b27 (diff) | |
parent | cf3701bbac2f593c6efe046ba15be55bc1360f5b (diff) | |
download | subsurface-9cc8e39d425b7f64c4c5c2a4226ba581550076f6.tar.gz |
Merge branch 'Planner'
Diffstat (limited to 'planner.c')
-rw-r--r-- | planner.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -678,7 +678,8 @@ void plan(struct diveplan *diveplan, char **cached_datap, struct dive **divep, b /* We will break out when we hit the surface */ do { /* Ascend to next stop depth */ - assert(deco_allowed_depth(tissue_tolerance, diveplan->surface_pressure / 1000.0, dive, 1) < depth); + if (deco_allowed_depth(tissue_tolerance, diveplan->surface_pressure / 1000.0, dive, 1) < depth) + fprintf(stderr, "user provided way point above ceiling\n"); int deltad = ascend_velocity(depth, avg_depth, bottom_time) * TIMESTEP; if (ascend_velocity(depth, avg_depth, bottom_time) != last_ascend_rate) { plan_add_segment(diveplan, clock - previous_point_time, depth, o2, he, po2, false); |