Skip to content
Snippets Groups Projects
Commit 61d88270 authored by Mladen Ivkovic's avatar Mladen Ivkovic Committed by Matthieu Schaller
Browse files

added check for valid thread number provided

parent 24674a02
No related branches found
No related tags found
3 merge requests!1887Updating . . .,!1878updating working branch,!1827added check for valid thread number provided
......@@ -411,6 +411,8 @@ int main(int argc, char *argv[]) {
}
/* Deal with thread numbers */
if (nr_threads <= 0)
error("Invalid number of threads provided (%d), must be > 0.", nr_threads);
if (nr_pool_threads == -1) nr_pool_threads = nr_threads;
/* Write output parameter file */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment