summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2025-03-26 17:25:54 -0300
committerJaron Kent-Dobias <jaron@kent-dobias.com>2025-03-26 17:25:54 -0300
commit4999894d546b8b91092cddde6b373b66184ec9bb (patch)
treecc42ef29636c1dac43047f230e172c50f1a05184
parent131125bd42b69ba27a2f3ea76534cc3b2348cfb0 (diff)
downloadcode-4999894d546b8b91092cddde6b373b66184ec9bb.tar.gz
code-4999894d546b8b91092cddde6b373b66184ec9bb.tar.bz2
code-4999894d546b8b91092cddde6b373b66184ec9bb.zip
Changed correlations processing to make it easier
-rw-r--r--correlations.cpp2
-rwxr-xr-xprocess_correlations.sh3
2 files changed, 4 insertions, 1 deletions
diff --git a/correlations.cpp b/correlations.cpp
index ef0222e..94d8b74 100644
--- a/correlations.cpp
+++ b/correlations.cpp
@@ -27,7 +27,7 @@ int main(int argc, char* argv[]) {
E = atof(optarg);
break;
case 't':
- Δt = atof(optarg);
+ Δt = pow(10, -atof(optarg));
break;
case 'w':
Δw = atof(optarg);
diff --git a/process_correlations.sh b/process_correlations.sh
new file mode 100755
index 0000000..0fe006e
--- /dev/null
+++ b/process_correlations.sh
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+for T0 in 1 10 100 1000 10000; do for file in $(ls *.dat); do ../code/correlations -N $(echo $file | cut -d_ -f1) -E $(echo $file | cut -d_ -f2) -T 100 -0 0 -t $(echo $file | cut -d_ -f3) -w $(echo $file | cut -d_ -f4) -i $(echo $file | cut -d_ -f5 | cut -d. -f1); done; done