Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GmshFEM
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
Model registry
Operate
Environments
Monitor
Incidents
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
Gmsh
GmshFEM
Commits
aaf3f61f
Commit
aaf3f61f
authored
Mar 27, 2024
by
Boris Martin
Browse files
Options
Downloads
Patches
Plain Diff
Replaced a lambda by an explicit functor for compatibility issues
parent
d29f3efe
No related branches found
No related tags found
1 merge request
!80
Various fixes
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/field/DistributedField.cpp
+13
-1
13 additions, 1 deletion
src/field/DistributedField.cpp
with
13 additions
and
1 deletion
src/field/DistributedField.cpp
+
13
−
1
View file @
aaf3f61f
...
@@ -196,6 +196,18 @@ namespace gmshfem::field
...
@@ -196,6 +196,18 @@ namespace gmshfem::field
common
::
Timer
timeComm
;
common
::
Timer
timeComm
;
timeComm
.
tick
();
timeComm
.
tick
();
// Not a lambda because of an OpenMP issue on MacOS.
struct
KeyFinder
{
const
DofGlobalIndex
key
;
KeyFinder
(
const
DofGlobalIndex
&
key
)
:
key
(
key
)
{}
bool
operator
()(
const
dofs
::
Dof
*
dof
)
const
{
return
dof
->
numType
()
==
key
.
first
&&
dof
->
entity
()
==
key
.
second
;
}
};
for
(
auto
&
[
key
,
value
]
:
ownershipData
)
{
for
(
auto
&
[
key
,
value
]
:
ownershipData
)
{
if
(
std
::
find
(
value
.
readers
.
begin
(),
value
.
readers
.
end
(),
rank
)
!=
value
.
readers
.
end
())
{
if
(
std
::
find
(
value
.
readers
.
begin
(),
value
.
readers
.
end
(),
rank
)
!=
value
.
readers
.
end
())
{
...
@@ -204,7 +216,7 @@ namespace gmshfem::field
...
@@ -204,7 +216,7 @@ namespace gmshfem::field
msg
::
debug
<<
"["
<<
rank
<<
"] reads from overlap "
<<
key
.
first
<<
','
<<
key
.
second
<<
msg
::
endl
;
msg
::
debug
<<
"["
<<
rank
<<
"] reads from overlap "
<<
key
.
first
<<
','
<<
key
.
second
<<
msg
::
endl
;
}
}
else
if
(
value
.
writers
.
empty
())
{
else
if
(
value
.
writers
.
empty
())
{
if
(
std
::
find_if
(
_innerDofs
.
begin
(),
_innerDofs
.
end
(),
[
key
](
dofs
::
Dof
*
dof
)
{
return
dof
->
numType
()
==
key
.
first
&&
dof
->
entity
()
==
key
.
second
;
}
)
!=
_innerDofs
.
end
())
{
if
(
std
::
find_if
(
_innerDofs
.
begin
(),
_innerDofs
.
end
(),
KeyFinder
(
key
)
)
!=
_innerDofs
.
end
())
{
// No one is writing it on the overlap, but it's my inner DOF, so I own it
// No one is writing it on the overlap, but it's my inner DOF, so I own it
_toSendID
.
insert
(
key
);
_toSendID
.
insert
(
key
);
++
innerDofToSend
;
++
innerDofToSend
;
...
...
...
...
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