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
3
deco.c
3
deco.c
|
@ -511,7 +511,8 @@ void add_segment(double pressure, const struct gasmix *gasmix, int period_in_sec
|
||||||
tissue_n2_sat[ci] += n2_satmult * pn2_oversat * n2_f;
|
tissue_n2_sat[ci] += n2_satmult * pn2_oversat * n2_f;
|
||||||
tissue_he_sat[ci] += he_satmult * phe_oversat * he_f;
|
tissue_he_sat[ci] += he_satmult * phe_oversat * he_f;
|
||||||
}
|
}
|
||||||
calc_crushing_pressure(pressure);
|
if(prefs.deco_mode == VPMB && in_planner())
|
||||||
|
calc_crushing_pressure(pressure);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue