Commit 8df3e5df authored by Christophe Geuzaine's avatar Christophe Geuzaine

fix omp build

parent 9b10b44e
......@@ -2671,7 +2671,7 @@ template <unsigned DIM> struct ZoneTask {
void change_status(const int _status)
{
#ifdef _OPENMP
#pragma omp atomic
//#pragma omp atomic
#endif
status = _status;
}
......@@ -2695,10 +2695,13 @@ int write_CGNS_zones(GModel &model, const int zoneDefinition, const int numZone,
int threadsWorking = omp_get_num_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
// defined and are ready to be written
// ** omp_lock_t queueLock;
// Next two are locked by an omp critical
int globalZoneIndex = 0;
PhysGroupMap::const_iterator globalPhysicalIt = group.begin();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment