Skip to content
Snippets Groups Projects
Commit 8df3e5df authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

fix omp build

parent 9b10b44e
No related branches found
No related tags found
No related merge requests found
...@@ -2671,7 +2671,7 @@ template <unsigned DIM> struct ZoneTask { ...@@ -2671,7 +2671,7 @@ template <unsigned DIM> struct ZoneTask {
void change_status(const int _status) void change_status(const int _status)
{ {
#ifdef _OPENMP #ifdef _OPENMP
#pragma omp atomic //#pragma omp atomic
#endif #endif
status = _status; status = _status;
} }
...@@ -2695,10 +2695,13 @@ int write_CGNS_zones(GModel &model, const int zoneDefinition, const int numZone, ...@@ -2695,10 +2695,13 @@ int write_CGNS_zones(GModel &model, const int zoneDefinition, const int numZone,
int threadsWorking = omp_get_num_threads(); int threadsWorking = omp_get_num_threads();
// Semaphore for working threads // Semaphore for working threads
// ** omp_lock_t threadWLock; #ifdef _OPENMP
omp_lock_t threadWLock;
omp_lock_t queueLock;
#endif
std::queue<ZoneTask<DIM> *> zoneQueue; // Queue for zones that have been std::queue<ZoneTask<DIM> *> zoneQueue; // Queue for zones that have been
// defined and are ready to be written // defined and are ready to be written
// ** omp_lock_t queueLock;
// Next two are locked by an omp critical // Next two are locked by an omp critical
int globalZoneIndex = 0; int globalZoneIndex = 0;
PhysGroupMap::const_iterator globalPhysicalIt = group.begin(); PhysGroupMap::const_iterator globalPhysicalIt = group.begin();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment