Gotcha. The placement of omp_get_num_threads() was before #pragma instead of after
Last commit in the morning Sept 17