summaryrefslogtreecommitdiff
path: root/log-fourier_integrator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'log-fourier_integrator.cpp')
-rw-r--r--log-fourier_integrator.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/log-fourier_integrator.cpp b/log-fourier_integrator.cpp
index 7ac76b5..55f358a 100644
--- a/log-fourier_integrator.cpp
+++ b/log-fourier_integrator.cpp
@@ -23,10 +23,11 @@ int main(int argc, char* argv[]) {
Real Δβ = 0.01;
bool loadData = false;
unsigned stepsToRespond = 1000;
+ unsigned pad = 4;
int opt;
- while ((opt = getopt(argc, argv, "p:s:2:T:t:b:d:g:k:D:e:0:lS:x:")) != -1) {
+ while ((opt = getopt(argc, argv, "p:s:2:T:t:b:d:g:k:D:e:0:lS:x:P:")) != -1) {
switch (opt) {
case 'p':
p = atoi(optarg);
@@ -64,6 +65,9 @@ int main(int argc, char* argv[]) {
case 'x':
x = atof(optarg);
break;
+ case 'P':
+ pad = atoi(optarg);
+ break;
case 'l':
loadData = true;
break;
@@ -77,7 +81,7 @@ int main(int argc, char* argv[]) {
unsigned N = pow(2, log2n);
- LogarithmicFourierTransform fft(N, k, Δτ, 4);
+ LogarithmicFourierTransform fft(N, k, Δτ, pad);
Real Γ₀ = 1;
Real μₜ₋₁ = Γ₀;