Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Kirill Terekhov
INMOST
Commits
cc28d9c4
Commit
cc28d9c4
authored
Mar 22, 2021
by
Kirill Terekhov
Browse files
critical section for private markers allocation
parent
8e8cd3b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Source/Mesh/mesh.cpp
View file @
cc28d9c4
...
...
@@ -295,12 +295,12 @@ namespace INMOST
{
#pragma omp single
{
tag_private_markers
=
new
Tag
[
GetLocalProcessorNumber
()];
tag_private_markers
=
new
Tag
[
GetLocalProcessorNumber
()];
}
//
#pragma omp
ordered
#pragma omp
critical
{
std
::
stringstream
name
;
name
<<
"PROTECTED_PRIVATE_MARKERS_"
<<
GetLocalProcessorRank
();
name
<<
"PROTECTED_PRIVATE_MARKERS_"
<<
GetLocalProcessorRank
();
tag_private_markers
[
GetLocalProcessorRank
()]
=
CreateTag
(
name
.
str
(),
DATA_BULK
,
CELL
|
FACE
|
EDGE
|
NODE
|
ESET
|
MESH
,
NONE
,
MarkerFieldsPrivate
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment