diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-01-06 16:55:25 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-01-06 22:16:59 -0800 |
commit | 25209bfbb4c653c34ddd43f7067e6d0604779b07 (patch) | |
tree | 1e9d143261f3bf344f2126cfe46bc80f3b1d8fbc /uemis-downloader.c | |
parent | 98ed131bdaee6074a2f65d0643e7137e7e5692df (diff) | |
download | subsurface-25209bfbb4c653c34ddd43f7067e6d0604779b07.tar.gz |
Fix pressure_time calculation for SAC-rate
The code was using bar, not atm to calculate the pressure_time
multiplier. But SAC-rate is relative to atm.
We could do the correction at the end (and keep the pressure_time in
"bar-seconds"), but let's just use the expected units during the
integration. Especially since this also makes a helper function to do
the calculations (with variables to keep the units obvious) instead of
having multi-line expressions that have the wrong units.
This fixes what I thought were rounding errors for the pressure graphs.
They were just unit confusion.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'uemis-downloader.c')
0 files changed, 0 insertions, 0 deletions