mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
Only calculate crushing pressure in VPM-B mode
Don't do this expensive calculation when not needed. Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
a77d1a3f56
commit
28c1dc754d
1 changed files with 2 additions and 1 deletions
1
deco.c
1
deco.c
|
@ -511,6 +511,7 @@ void add_segment(double pressure, const struct gasmix *gasmix, int period_in_sec
|
|||
tissue_n2_sat[ci] += n2_satmult * pn2_oversat * n2_f;
|
||||
tissue_he_sat[ci] += he_satmult * phe_oversat * he_f;
|
||||
}
|
||||
if(prefs.deco_mode == VPMB && in_planner())
|
||||
calc_crushing_pressure(pressure);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue