diff --git a/src/input.cpp b/src/input.cpp index 82b7ca6127..af69934902 100644 --- a/src/input.cpp +++ b/src/input.cpp @@ -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");