@@ -36,7 +36,6 @@ static void show_usage(int argc, char** argv) {
3636 << " Use: " << QASP_PROGRAM_NAME << " [OPTIONS] SOURCES...\n "
3737 << " Process qasp SOURCES and blabla...\n\n "
3838 << " -j N, --parallel=N allow N jobs at once.\n "
39- << " -n N, --iterations=N iterate solving N times (infinite: N <= 0).\n "
4039 << " -q, --quiet hide log information.\n "
4140 << " --help print this message and exit.\n "
4241 << " --version print version info and exit.\n " ;
@@ -85,7 +84,7 @@ int main(int argc, char** argv) {
8584 qasp::Options options;
8685
8786 int c, idx;
88- while ((c = getopt_long (argc, argv, " qj:n: hv" , long_options, &idx)) != -1 ) {
87+ while ((c = getopt_long (argc, argv, " qj:hv" , long_options, &idx)) != -1 ) {
8988
9089 switch (c) {
9190 case ' q' :
@@ -94,9 +93,6 @@ int main(int argc, char** argv) {
9493 case ' j' :
9594 options.cpus = atoi (optarg);
9695 break ;
97- case ' n' :
98- options.iterations = atoll (optarg);
99- break ;
10096 case ' v' :
10197 show_version (argc, argv);
10298 break ;
@@ -112,12 +108,7 @@ int main(int argc, char** argv) {
112108
113109
114110 if (unlikely (options.cpus < 1 )) {
115- std::cerr << QASP_PROGRAM_NAME << " : error: invalid parallel value" << std::endl;
116- abort ();
117- }
118-
119- if (unlikely (options.iterations <= 0 )) {
120- options.iterations = std::numeric_limits<decltype (options.iterations )>().max ();
111+ options.cpus = std::numeric_limits<decltype (options.cpus )>().max ();
121112 }
122113
123114
@@ -163,6 +154,7 @@ int main(int argc, char** argv) {
163154
164155 }
165156
157+
166158 return EXIT_SUCCESS;
167159
168160}
0 commit comments