openmp3.1 check

This commit is contained in:
Joachim Schoeberl 2015-01-09 16:03:35 +00:00
parent ac698a245d
commit 325e1e315c

View File

@ -2466,7 +2466,9 @@ namespace netgen
double hminv = numeric_limits<double>::max();
double hmaxv = -numeric_limits<double>::max();
bool hhasit = false;
#if defined _OPENMP && _OPENMP >= 201107
#pragma omp parallel for reduction (max : hmaxv) reduction (min : hminv) reduction (|| : hhasit)
#endif
for (int i = 0; i < ne; i++)
{
double val;