need to check for nthreads < 1 only if OpenMP is enabled

This commit is contained in:
Axel Kohlmeyer
2020-09-25 22:14:21 -04:00
parent 909960514a
commit adef7d4e18

View File

@ -78,10 +78,10 @@ FixOMP::FixOMP(LAMMPS *lmp, int narg, char **arg)
#endif
}
#if defined(_OPENMP)
if (nthreads < 1)
error->all(FLERR,"Illegal number of OpenMP threads requested");
#if defined(_OPENMP)
int reset_thr = 0;
#endif
if (nthreads != comm->nthreads) {