aboutsummaryrefslogtreecommitdiff
path: root/msd
diff options
context:
space:
mode:
Diffstat (limited to 'msd')
-rw-r--r--msd/src/msd.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/msd/src/msd.h b/msd/src/msd.h
index a1a91f8..8b59034 100644
--- a/msd/src/msd.h
+++ b/msd/src/msd.h
@@ -311,11 +311,11 @@ public:
else { // Lmin < L < Lmax
// F[n] = k1 (L[n] - L[0])/L[n] + D1 (L[n] - L[n-1])/L[n]
if (link_type == 3) { // tabLink
- t_float k_temp = 1;
+ t_float k_temp = distance;
if (k_tabname) {
k_temp = interp_buf(distance,k_tab,l_tab);
}
- t_float d_temp = 1;
+ t_float d_temp = distance-distance_old;
if (d_tabname) {
d_temp = interp_buf(distance-distance_old,d_tab,l_tab);
}