aboutsummaryrefslogtreecommitdiff
path: root/makeBoundary
diff options
context:
space:
mode:
Diffstat (limited to 'makeBoundary')
-rwxr-xr-xmakeBoundary4
1 files changed, 2 insertions, 2 deletions
diff --git a/makeBoundary b/makeBoundary
index fc8390c..76eaf21 100755
--- a/makeBoundary
+++ b/makeBoundary
@@ -295,8 +295,8 @@ print('insertion point =', ind_q)
# find height at target flow by linear interpolation
h_extra = h_i[panel[ind_p]][ind_q-1] \
- + (h_i[panel[ind_p]][ind_q] - h_i[panel[ind_p]][ind_q-1])\
- *(panel_target_flow - Q_i[panel[ind_p]][ind_q-1])\
+ + (panel_target_flow - Q_i[panel[ind_p]][ind_q-1])\
+ *(h_i[panel[ind_p]][ind_q] - h_i[panel[ind_p]][ind_q-1])\
/(Q_i[panel[ind_p]][ind_q] - Q_i[panel[ind_p]][ind_q-1])
print('heights:', h_i[panel[ind_p]][ind_q-1], h_extra, h_i[panel[ind_p]][ind_q])
# find area at target flow by linear interpolation