use openmp when enabled
when using openmp set omp_num_threads
use static scheduling and remove unnecessary omp_get_thread_num
Merge pull request #182 from friedmud/openmp_merge

use openmp when enabled