Skip to content
Snippets Groups Projects
Commit 6c668b9d authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Merge branch 'check_nr_threads_valid' into 'master'

added check for valid thread number provided

See merge request !1827
parents 24674a02 61d88270
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[]) { ...@@ -411,6 +411,8 @@ int main(int argc, char *argv[]) {
} }
/* Deal with thread numbers */ /* 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; if (nr_pool_threads == -1) nr_pool_threads = nr_threads;
/* Write output parameter file */ /* 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