avoid requesting threaded neighbor lists that are both threaded via USER-OMP and USER-INTEL

This commit is contained in:
Axel Kohlmeyer
2018-10-05 16:03:11 +02:00
parent cdea8968c2
commit 61e2cd3f61
2 changed files with 10 additions and 2 deletions

View File

@ -318,8 +318,11 @@ void FixOMP::set_neighbor_omp()
const int neigh_omp = _neighbor ? 1 : 0;
const int nrequest = neighbor->nrequest;
// flag *all* neighbor list requests as USER-OMP threaded,
// but skip lists already flagged as USER-INTEL threaded
for (int i = 0; i < nrequest; ++i)
neighbor->requests[i]->omp = neigh_omp;
if (! neighbor->requests[i]->intel)
neighbor->requests[i]->omp = neigh_omp;
}
/* ---------------------------------------------------------------------- */