need to check for nthreads < 1 only if OpenMP is enabled
This commit is contained in:
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user