diff --git a/src/mcmc_progression.cpp b/src/mcmc_progression.cpp index a3aa494..ac517d4 100644 --- a/src/mcmc_progression.cpp +++ b/src/mcmc_progression.cpp @@ -23,7 +23,7 @@ void usage(std::string filename) { std::cout << "Usage: " << filename << " " - " \n\n" + " \n\n" << "\t[ -h | --help ]\n"; exit(-1); } @@ -57,17 +57,11 @@ int main(int argc, char **argv) usage(argv[0]); } } - // Check that the number of arguments is at least 6. - if (argc < 6) { + // Check that the number of arguments is at least 7. + if (argc < 7) { usage(argv[0]); } - bool ordered = false; - - if (argc == 7) { - ordered = true; - } - // Timing variables double t0, t1; t0 = omp_get_wtime(); @@ -77,6 +71,8 @@ int main(int argc, char **argv) int L = atoi(argv[2]), cycles = atoi(argv[3]), burn_in_time = atoi(argv[4]); std::string outfile = argv[5]; + bool ordered = atoi(argv[6]) == 1 ? true : false; + if (ordered) { DEBUG("Hello"); montecarlo::progression(temp, L, cycles, 1, outfile, burn_in_time);