Michael Keller
10fc3bfd47
Bugfix: Fix Incorrect Volumes Displayed for Tank Types.
...
Fix an issue introduced in #4148 .
Essentially the refactoring missed the fact that in the imperial system
tank size is tracked as the free gas volume, but in the metric system
(which is the one used in most of Subsurface's calculations) tank size
is tracked as water capacity.
So when updating a tank template tracking imperial measurements, the
given (metric) volume in l has to be multiplied by the working pressure,
and vice versa.
This also combines all the logic dealing with `tank_info` data in one
place, hopefully making it less likely that this will be broken by
inconsistencies in the future.
Fixes #4239 .
Signed-off-by: Michael Keller <github@ike.ch>
2024-06-09 11:15:59 +02:00
..
2015-10-30 10:36:49 -07:00
2024-04-26 08:14:16 +12:00
2022-11-19 15:07:07 -08:00
2024-05-25 20:13:45 +02:00
2024-02-04 14:50:18 -08:00
2024-02-04 14:50:18 -08:00
2024-02-04 14:50:18 -08:00
2020-09-29 16:13:03 -07:00
2022-03-12 08:28:32 -08:00
2020-12-17 13:03:56 -08:00
2019-02-14 09:05:58 -08:00
2024-01-20 09:38:22 -08:00
2024-03-24 17:53:19 +01:00
2024-03-24 17:53:19 +01:00
2023-06-12 12:40:44 -07:00
2022-02-15 09:35:43 -08:00
2024-03-24 17:53:19 +01:00
2024-01-17 14:23:19 -08:00
2022-03-12 08:28:32 -08:00
2019-12-03 21:30:39 -08:00
2023-05-18 10:31:31 +03:00
2024-04-23 07:47:11 +07:00
2020-10-23 18:17:02 -07:00
2017-11-30 23:14:46 -08:00
2020-12-03 10:32:20 -08:00
2020-05-06 13:58:09 -07:00
2024-05-11 12:51:45 +12:00
2024-05-11 12:51:45 +12:00
2018-03-02 08:38:22 -08:00
2022-03-12 08:28:32 -08:00
2019-12-11 11:08:51 -05:00
2022-03-12 08:28:32 -08:00
2024-01-17 14:23:19 -08:00
2019-05-06 10:48:44 +02:00
2019-05-06 10:48:44 +02:00
2023-04-14 21:20:23 +02:00
2022-09-23 15:50:49 +02:00
2022-09-23 15:50:49 +02:00
2024-05-11 12:52:05 +12:00
2024-04-22 16:52:19 +12:00
2024-04-22 16:52:19 +12:00
2022-02-15 09:30:43 -08:00
2020-09-29 16:13:03 -07:00
2024-03-10 11:01:42 +13:00
2020-09-29 16:14:31 -07:00
2020-09-29 16:14:31 -07:00
2024-01-15 15:11:36 -08:00
2018-07-04 02:27:36 +08:00
2018-07-15 09:38:12 -07:00
2024-03-24 17:53:19 +01:00
2018-09-29 15:23:25 -07:00
2020-05-01 09:42:31 -07:00
2020-01-24 09:51:02 -08:00
2020-03-19 08:37:59 -07:00
2024-03-24 17:53:19 +01:00
2018-09-29 15:23:25 -07:00
2018-12-14 01:05:18 +08:00
2024-01-17 14:23:19 -08:00
2023-05-20 07:24:39 +02:00
2020-01-24 09:51:02 -08:00
2024-06-01 23:22:40 +12:00
2024-05-17 16:44:04 +12:00
2023-06-17 20:19:35 +02:00
2024-04-23 07:47:11 +07:00
2023-04-16 20:23:59 +02:00
2024-06-09 11:15:59 +02:00
2024-04-16 08:56:49 +12:00
2022-03-12 08:28:32 -08:00
2022-03-12 08:28:32 -08:00
2017-02-24 01:06:09 -08:00
2019-10-31 00:30:38 -07:00
2024-03-24 17:53:19 +01:00
2024-03-24 17:53:19 +01:00
2023-04-16 20:23:59 +02:00
2023-04-16 20:23:59 +02:00
2023-03-28 21:08:37 -07:00
2023-03-28 21:08:37 -07:00
2023-03-28 21:08:37 -07:00
2024-06-02 11:38:21 +02:00
2024-06-01 23:22:40 +12:00
2023-06-25 14:40:23 +02:00
2022-03-12 08:28:32 -08:00
2015-10-30 10:36:49 -07:00
2017-11-30 23:14:46 -08:00
2017-11-30 23:14:46 -08:00
2017-11-30 23:14:46 -08:00
2021-09-22 09:09:12 -07:00
2022-03-12 08:28:32 -08:00
2024-04-23 07:47:11 +07:00
2023-01-18 15:42:47 -08:00
2020-10-26 19:27:03 -07:00
2020-10-26 19:27:03 -07:00
2022-03-12 08:28:32 -08:00
2022-03-12 08:28:32 -08:00
2022-01-04 11:14:24 -08:00
2024-04-23 07:47:11 +07:00
2022-04-18 07:24:39 +02:00
2020-11-07 11:37:51 -08:00
2019-12-05 10:14:25 -08:00
2015-10-30 10:36:49 -07:00
2022-08-13 11:19:37 -07:00
2022-08-13 11:19:37 -07:00
2023-04-16 20:23:59 +02:00
2020-12-17 13:03:56 -08:00
2017-03-12 09:19:03 -07:00
2024-04-23 07:47:11 +07:00
2024-01-15 15:11:36 -08:00
2019-04-12 18:19:07 +03:00
2019-04-12 18:19:07 +03:00
2023-04-14 21:20:23 +02:00
2020-10-03 10:01:13 -07:00
2020-10-03 10:01:13 -07:00
2024-01-07 16:01:55 -08:00
2017-04-29 13:32:55 -07:00
2022-04-01 08:28:05 -07:00
2020-10-26 19:27:03 -07:00
2019-03-20 08:45:02 -07:00
2017-11-30 23:14:46 -08:00