diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-01-09 16:01:15 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-01-09 16:01:15 -0800 |
commit | c0ce218df494a527111ce9180aef84ea0d34e333 (patch) | |
tree | f798e658d8049da2287fd25ad925339bfa21c267 /save-xml.c | |
parent | fbea5e31ca27007dbfeb1beac3d8947a4ef64306 (diff) | |
download | subsurface-c0ce218df494a527111ce9180aef84ea0d34e333.tar.gz |
Add support to planner to use additional gases during the ascent
This change ended up being quite a bit bigger than expected as it
uncovered a number of bugs in the existing code.
The planner now handles gas changes correctly by creating (and later
parsing) events in the simulated divecomputer. At the end of the dive
specified in the input form the algorithm starts with the deepest
interesting depth: either the first stop below our ceiling or the deepest
depth at which we can change gases. It then traverses all the stop and all
the gas change depth and at each stage ensures that we are allowed to
ascend further before going on.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'save-xml.c')
-rw-r--r-- | save-xml.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/save-xml.c b/save-xml.c index 59eb02e23..7b5cd2b10 100644 --- a/save-xml.c +++ b/save-xml.c @@ -425,7 +425,7 @@ static void save_dc(FILE *f, struct dive *dive, struct divecomputer *dc) fprintf(f, " </divecomputer>\n"); } -static void save_dive(FILE *f, struct dive *dive) +void save_dive(FILE *f, struct dive *dive) { struct divecomputer *dc; |