summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2019-09-04 15:43:56 -0400
committerJaron Kent-Dobias <jaron@kent-dobias.com>2019-09-04 15:43:56 -0400
commite990445264d1417c228af33be238a245b08396cb (patch)
treee1ccbc5ec5c7d2895d92032834aa50bd09971c31
parent19fcaf68f401ab4bae47cd8c4c84eb2560ce3b8b (diff)
downloadcode-e990445264d1417c228af33be238a245b08396cb.tar.gz
code-e990445264d1417c228af33be238a245b08396cb.tar.bz2
code-e990445264d1417c228af33be238a245b08396cb.zip
added ability to change the autocorrelation function length on teh command line,
-rw-r--r--src/new_model.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/new_model.cpp b/src/new_model.cpp
index 9d51ff5..a922a8f 100644
--- a/src/new_model.cpp
+++ b/src/new_model.cpp
@@ -252,7 +252,7 @@ int main (int argc, char *argv[]) {
int opt;
// take command line arguments
- while ((opt = getopt(argc, argv, "N:L:T:J:K:a:n:e:f:w:")) != -1) {
+ while ((opt = getopt(argc, argv, "N:L:T:J:K:a:n:e:f:w:h:")) != -1) {
switch (opt) {
case 'N': // number of steps
N = (unsigned)atof(optarg);
@@ -284,6 +284,9 @@ int main (int argc, char *argv[]) {
case 'w':
w = atoi(optarg);
break;
+ case 'h':
+ nh = atoi(optarg);
+ break;
default:
exit(EXIT_FAILURE);
}