From aceb74882845c1a18e723563226c92450c3d476d Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Wed, 4 Sep 2019 14:12:18 -0400 Subject: added command line flag for wait time --- src/new_model.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') 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); } -- cgit v1.2.3-70-g09d2