make the nthreads command actually do something.

This commit is contained in:
Axel Kohlmeyer
2010-04-27 21:25:37 -04:00
parent 96578a3282
commit a1c3379b66

View File

@ -1041,6 +1041,7 @@ void Input::nthreads()
if (nthreads > 0) {
#if defined(_OPENMP)
comm->nthreads = nthreads;
omp_set_num_threads(nthreads);
#else
if (me == 0) {
if (screen) fprintf(screen,"No OpenMP support compiled in. Ignoring nthreads command.\n");