mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-27 13:20:34 +05:00
openmp3.1 check
This commit is contained in:
parent
ac698a245d
commit
325e1e315c
@ -2466,7 +2466,9 @@ namespace netgen
|
|||||||
double hminv = numeric_limits<double>::max();
|
double hminv = numeric_limits<double>::max();
|
||||||
double hmaxv = -numeric_limits<double>::max();
|
double hmaxv = -numeric_limits<double>::max();
|
||||||
bool hhasit = false;
|
bool hhasit = false;
|
||||||
|
#if defined _OPENMP && _OPENMP >= 201107
|
||||||
#pragma omp parallel for reduction (max : hmaxv) reduction (min : hminv) reduction (|| : hhasit)
|
#pragma omp parallel for reduction (max : hmaxv) reduction (min : hminv) reduction (|| : hhasit)
|
||||||
|
#endif
|
||||||
for (int i = 0; i < ne; i++)
|
for (int i = 0; i < ne; i++)
|
||||||
{
|
{
|
||||||
double val;
|
double val;
|
||||||
|
Loading…
Reference in New Issue
Block a user