Number of concurrent threads
subroutine nb_procs() !! Number of concurrent threads implicit none integer(kind=I4) :: nb_th read(JOB,*) nb_th ; LINE_READ = LINE_READ + 1 ; write(SPY, *) LINE_READ, 'nb_procs', nb_th select case( nb_th ) case( 0) ! no multihreading PARAM%nb_threads = 1 NB_THREADS_FFT = 1 case(-1) ! determined by system PARAM%nb_threads = omp_get_num_procs() NB_THREADS_FFT = PARAM%nb_threads case default stop 'Bad choice "nb_procs" in "mod_script"' endselect return endsubroutine nb_procs