summaryrefslogtreecommitdiffstats
path: root/pref.h
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2015-08-17 17:40:47 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-08-17 21:58:09 -0700
commita6ed36fb7368254d694a4f397d6d033326c37ef2 (patch)
treeadb22f8733ed509eb9e88dee5ec3e969dbc6ada7 /pref.h
parent930e83dfc42286bbcdb1f037e7472766e211066b (diff)
downloadsubsurface-a6ed36fb7368254d694a4f397d6d033326c37ef2.tar.gz
Pref. to ascent to next stop only when stop is below ceiling
Usually, we try to ascent to the next stop and check if we break the ceiling while doing that. This patch adds a preference value to rather check if the ceiling is above the next stop before attempting to ascent. The difference if off-gasing during the ascent is taken into account. Logically, it does not sound like it could be relevant to ignore that off-gasing but it leads to more conservative schedules and it seems the original Fortran VPM-B implementation does just this. So one could argue it is part of that model (if it makes sense or not), so we should at least give users the possibility to turn this on. Maybe we should even make this the default for VPM-B. This patch just addes the code to have the value in the preferences and the planner to act accordingly. There is no UI for it, yet. To test, you have to set it in the code. There could be a later patch with a UI if people like to have it. Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'pref.h')
-rw-r--r--pref.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/pref.h b/pref.h
index e471add73..953003a2d 100644
--- a/pref.h
+++ b/pref.h
@@ -97,6 +97,7 @@ struct preferences {
bool display_transitions;
bool safetystop;
bool switch_at_req_stop;
+ bool check_ceiling_before_ascent;
int reserve_gas;
int min_switch_duration; // seconds
int bottomsac;