summaryrefslogtreecommitdiff
path: root/log-fourier_integrator.cpp
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2025-04-30 11:35:26 -0300
committerJaron Kent-Dobias <jaron@kent-dobias.com>2025-04-30 11:35:26 -0300
commit9ce5e8b399f29d932d52fd53ac903a106a267259 (patch)
tree01d989abdc354ab28e9a4a551052039972d2cc42 /log-fourier_integrator.cpp
parent947daeb85321ed804bc3142623844b2617cb1b3e (diff)
downloadcode-9ce5e8b399f29d932d52fd53ac903a106a267259.tar.gz
code-9ce5e8b399f29d932d52fd53ac903a106a267259.tar.bz2
code-9ce5e8b399f29d932d52fd53ac903a106a267259.zip
Set pad from the command lineHEADmaster
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 μₜ₋₁ = Γ₀;