diff options
author | Robert C. Helling <helling@atdotde.de> | 2014-01-21 21:43:07 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-01-21 14:07:10 -0800 |
commit | 2f822ec0dcd2d715bf4234023b510aed9fe90f0b (patch) | |
tree | 0b787fc3062e3e0f06e637255b38687284867c58 /dives/test9a.xml | |
parent | 4159faa950dbb5c826987402f5b670af3aa013a7 (diff) | |
download | subsurface-2f822ec0dcd2d715bf4234023b510aed9fe90f0b.tar.gz |
Prevent potential math overflow in new profile
Test for max_temp == min_temp to prevent math overflow when calculating
temperature axis in new profile
Signed-off-by: Robert C. Helling <helling@atdotde.de>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dives/test9a.xml')
-rw-r--r-- | dives/test9a.xml | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/dives/test9a.xml b/dives/test9a.xml new file mode 100644 index 000000000..ac9fa8582 --- /dev/null +++ b/dives/test9a.xml @@ -0,0 +1,42 @@ +<dives> +<program name='subsurface' version='1'></program> +<dive number='9' date='2011-01-01' time='17:00:00' duration='30:00 min'> + <depth max='30.0 m' mean='15.0 m' /> + <temperature air='27.0 C' water='26.0 C' /> + <location>9Ath test dive, with temperature in single sample</location> + <notes>Test collapse of temperature axis due to max_temp == min_temp.</notes> + <cylinder o2='33.0%' size='9.987 l' workpressure='206.843 bar' description='AL72' start='200.0 bar' end='100.0 bar' /> + <cylinder o2='50.0%' size='9.987 l' workpressure='206.843 bar' description='AL72' start='200.0 bar' end='100.0 bar' /> + <event time='15:00 min' name='gaschange' value='50' /> + <sample time='1:00 min' depth='5 m' /> + <sample time='2:00 min' depth='10 m' /> + <sample time='3:00 min' depth='15 m' /> + <sample time='4:00 min' depth='20 m' /> + <sample time='5:00 min' depth='25 m' /> + <sample time='6:00 min' depth='30 m' /> + <sample time='7:00 min' depth='30 m' /> + <sample time='8:00 min' depth='30 m' /> + <sample time='9:00 min' depth='30 m' /> + <sample time='10:00 min' depth='30 m' /> + <sample time='11:00 min' depth='30 m' /> + <sample time='12:00 min' depth='30 m' /> + <sample time='13:00 min' depth='30 m' /> + <sample time='14:00 min' temp='26.0 C' depth='10 m' /> + <sample time='15:00 min' depth='15 m' /> + <sample time='16:00 min' depth='5 m' /> + <sample time='17:00 min' depth='10 m' /> + <sample time='18:00 min' depth='10 m' /> + <sample time='19:00 min' depth='10 m' /> + <sample time='20:00 min' depth='10 m' /> + <sample time='21:00 min' depth='10 m' /> + <sample time='22:00 min' depth='5 m' /> + <sample time='23:00 min' depth='5 m' /> + <sample time='24:00 min' depth='5 m' /> + <sample time='25:00 min' depth='5 m' /> + <sample time='26:00 min' depth='5 m' /> + <sample time='27:00 min' depth='5 m' /> + <sample time='28:00 min' depth='5 m' /> + <sample time='29:00 min' depth='2.5 m' /> + <sample time='30:00 min' depth='0 m' /> +</dive> +</dives> |