summaryrefslogtreecommitdiff
path: root/pureStokes.cpp
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2022-01-04 17:42:30 +0100
committerJaron Kent-Dobias <jaron@kent-dobias.com>2022-01-04 17:42:30 +0100
commit94b6ed7d9c591ae2df0957a25e73bd2e5c69f6e1 (patch)
treedda5b4b9f7a8a08896260315f4f5bda1889ececc /pureStokes.cpp
parent874770326dc2063b56b0058f2f86ff47eccc6406 (diff)
downloadcode-94b6ed7d9c591ae2df0957a25e73bd2e5c69f6e1.tar.gz
code-94b6ed7d9c591ae2df0957a25e73bd2e5c69f6e1.tar.bz2
code-94b6ed7d9c591ae2df0957a25e73bd2e5c69f6e1.zip
Added option for spiking the interaction tensor to study minima below the threshold.
Diffstat (limited to 'pureStokes.cpp')
-rw-r--r--pureStokes.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/pureStokes.cpp b/pureStokes.cpp
index 448d5ef..b1ed1dc 100644
--- a/pureStokes.cpp
+++ b/pureStokes.cpp
@@ -16,10 +16,11 @@ int main(int argc, char* argv[]) {
Real δz₀ = 1e-3;
unsigned n = 10;
bool useMinima = false;
+ bool useSpike = false;
int opt;
- while ((opt = getopt(argc, argv, "N:e:d:n:m")) != -1) {
+ while ((opt = getopt(argc, argv, "N:e:d:n:ms")) != -1) {
switch (opt) {
case 'N':
N = (unsigned)atof(optarg);
@@ -36,6 +37,9 @@ int main(int argc, char* argv[]) {
case 'm':
useMinima = true;
break;
+ case 's':
+ useSpike = true;
+ break;
default:
exit(1);
}
@@ -45,7 +49,7 @@ int main(int argc, char* argv[]) {
for (unsigned i = 0; i < n; i++) {
auto tag = std::chrono::high_resolution_clock::now();
- collectStokesData<3>(std::to_string(tag.time_since_epoch().count()), N, r.engine(), ε, δz₀, useMinima, 1.0);
+ collectStokesData<3>(std::to_string(tag.time_since_epoch().count()), N, r.engine(), ε, δz₀, useMinima, useSpike, 1.0);
}
return 0;