mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Don't do computationally expensive Boyle compensation when not using VPM-B
Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
d9b4f2b7e3
commit
652f7e9864
1 changed files with 3 additions and 0 deletions
3
deco.c
3
deco.c
|
@ -362,6 +362,9 @@ void boyles_law(double next_stop_pressure)
|
|||
{
|
||||
int ci;
|
||||
|
||||
if (!in_planner() || prefs.deco_mode != VPMB)
|
||||
return;
|
||||
|
||||
// This should be a tautology but prevents a numerical instability.
|
||||
if (IS_FP_SAME(next_stop_pressure, first_stop_pressure))
|
||||
return;
|
||||
|
|
Loading…
Add table
Reference in a new issue