don't use openmp at all if params.cores == 1
Merge branch 'master' into conditional-openmp