summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2019-09-04 14:12:18 -0400
committerJaron Kent-Dobias <jaron@kent-dobias.com>2019-09-04 14:12:18 -0400
commitaceb74882845c1a18e723563226c92450c3d476d (patch)
treee1470d119308a762c438750e590e64ba75ecee5b
parent776a2f39a3ecb9cdefe00134cb6b97a4b7cd2bad (diff)
downloadcode-aceb74882845c1a18e723563226c92450c3d476d.tar.gz
code-aceb74882845c1a18e723563226c92450c3d476d.tar.bz2
code-aceb74882845c1a18e723563226c92450c3d476d.zip
added command line flag for wait time
-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 4f473da..fdfc128 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:")) != -1) {
+ while ((opt = getopt(argc, argv, "N:L:T:J:K:a:n:e:f:w:")) != -1) {
switch (opt) {
case 'N': // number of steps
N = (unsigned)atof(optarg);
@@ -281,6 +281,9 @@ int main (int argc, char *argv[]) {
case 'f':
εstiff = atof(optarg);
break;
+ case 'w':
+ w = atoi(optarg);
+ break;
default:
exit(EXIT_FAILURE);
}