summaryrefslogtreecommitdiffstats
path: root/planner.c
diff options
context:
space:
mode:
authorGravatar Henrik Brautaset Aronsen <subsurface@henrik.synth.no>2014-06-22 16:41:44 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-23 06:48:54 +0800
commit630ec88dd4a096fa39ad95b54a7dbfa760a212d9 (patch)
tree0a4cc6f336c92dc7ff2dee828aa88a45736f903e /planner.c
parent21916d67de37fcca027fa392995c24084c954bc1 (diff)
downloadsubsurface-630ec88dd4a096fa39ad95b54a7dbfa760a212d9.tar.gz
Be more consistent in partial pressure naming
Lets just use pO₂ instead of PO2, ppO2, ppO₂, PO₂. They all mean the same, but it's better to be consistent Signed-off-by: Henrik Brautaset Aronsen <subsurface@henrik.synth.no> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'planner.c')
-rw-r--r--planner.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/planner.c b/planner.c
index 25fd4908b..43cd09056 100644
--- a/planner.c
+++ b/planner.c
@@ -116,14 +116,14 @@ int get_gasidx(struct dive *dive, struct gasmix *mix)
return -1;
}
-double interpolate_transition(struct dive *dive, int t0, int t1, int d0, int d1, const struct gasmix *gasmix, int ppo2)
+double interpolate_transition(struct dive *dive, int t0, int t1, int d0, int d1, const struct gasmix *gasmix, int po2)
{
int j;
double tissue_tolerance = 0.0;
for (j = t0; j < t1; j++) {
int depth = interpolate(d0, d1, j - t0, t1 - t0);
- tissue_tolerance = add_segment(depth_to_mbar(depth, dive) / 1000.0, gasmix, 1, ppo2, dive);
+ tissue_tolerance = add_segment(depth_to_mbar(depth, dive) / 1000.0, gasmix, 1, po2, dive);
}
return tissue_tolerance;
}