Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Romin Tomasetti
gmsh
Commits
8df3e5df
Commit
8df3e5df
authored
6 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
fix omp build
parent
9b10b44e
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Geo/GModelIO_CGNS.cpp
+6
-3
6 additions, 3 deletions
Geo/GModelIO_CGNS.cpp
with
6 additions
and
3 deletions
Geo/GModelIO_CGNS.cpp
+
6
−
3
View file @
8df3e5df
...
@@ -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
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment