aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/quantum_efficiency.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/quantum_efficiency.c b/src/quantum_efficiency.c
index a3996b7..eed64c5 100644
--- a/src/quantum_efficiency.c
+++ b/src/quantum_efficiency.c
@@ -55,12 +55,6 @@ static int init()
y = malloc(sizeof(double)*(n+2));
size = n + 2;
- /* Make sure we extrapolate to 0. */
- x[0] = 0;
- y[0] = 0;
- x[n+1] = 1000;
- y[n+1] = 0;
-
i = 0;
n = 0;
/* Now, we actually store the values. */
@@ -93,6 +87,12 @@ static int init()
}
}
+ /* Make sure we extrapolate to 0. */
+ x[0] = x[1] - 1.0;
+ y[0] = 0;
+ x[n+1] = x[n] + 1.0;
+ y[n+1] = 0;
+
fclose(f);
initialized = 1;