Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
fem
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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
gmsh
fem
Commits
2137c323
Commit
2137c323
authored
1 month ago
by
Boris Martin
Browse files
Options
Downloads
Patches
Plain Diff
Preparing for upgrading toSend
parent
06657626
No related branches found
No related tags found
No related merge requests found
Pipeline
#12704
failed
1 month ago
Stage: build
Stage: test
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/field/DistributedField.cpp
+3
-2
3 additions, 2 deletions
src/field/DistributedField.cpp
src/field/DistributedField.h
+2
-2
2 additions, 2 deletions
src/field/DistributedField.h
with
5 additions
and
4 deletions
src/field/DistributedField.cpp
+
3
−
2
View file @
2137c323
...
@@ -258,9 +258,10 @@ namespace gmshfem::field
...
@@ -258,9 +258,10 @@ namespace gmshfem::field
}
}
template
<
class
T_Scalar
,
field
::
Form
T_Form
>
template
<
class
T_Scalar
,
field
::
Form
T_Form
>
void
DistributedField
<
T_Scalar
,
T_Form
>::
_computeToSend
()
void
DistributedField
<
T_Scalar
,
T_Form
>::
_computeToSend
(
const
std
::
optional
<
std
::
vector
<
int
>>&
neighborRanks
)
{
{
#ifdef HAVE_MPI
#ifdef HAVE_MPI
// What I have to send is what others have to read
// Send all owned interfaces and inner dofs that are read by someone else
// Send all owned interfaces and inner dofs that are read by someone else
std
::
vector
<
DofGlobalIndex
>
local
,
global
;
std
::
vector
<
DofGlobalIndex
>
local
,
global
;
...
@@ -339,7 +340,7 @@ namespace gmshfem::field
...
@@ -339,7 +340,7 @@ namespace gmshfem::field
timeOwnership
.
tick
();
timeOwnership
.
tick
();
msg
::
debug
<<
'['
<<
gmshfem
::
common
::
GmshFem
::
getMPIRank
()
<<
"] synchronizes ownership of shared Dofs..."
<<
msg
::
endl
;
msg
::
debug
<<
'['
<<
gmshfem
::
common
::
GmshFem
::
getMPIRank
()
<<
"] synchronizes ownership of shared Dofs..."
<<
msg
::
endl
;
_synchronizeInterfaceOwnership
(
neighboringRanks
);
_synchronizeInterfaceOwnership
(
neighboringRanks
);
_computeToSend
();
_computeToSend
(
neighboringRanks
);
timeOwnership
.
tock
();
timeOwnership
.
tock
();
msg
::
debug
<<
"Dof ownership in "
<<
timeOwnership
<<
msg
::
endl
;
msg
::
debug
<<
"Dof ownership in "
<<
timeOwnership
<<
msg
::
endl
;
}
}
...
...
This diff is collapsed.
Click to expand it.
src/field/DistributedField.h
+
2
−
2
View file @
2137c323
...
@@ -54,8 +54,8 @@ namespace gmshfem::field
...
@@ -54,8 +54,8 @@ namespace gmshfem::field
private
:
private
:
void
_computeDofsSubsets
();
// Computes the sets above, assuming this->_values is filled.
void
_computeDofsSubsets
();
// Computes the sets above, assuming this->_values is filled.
void
_synchronizeInterfaceOwnership
(
const
std
::
optional
<
std
::
vector
<
int
>>&
neighboringRanks
=
std
::
nullopt
);
void
_synchronizeInterfaceOwnership
(
const
std
::
optional
<
std
::
vector
<
int
>>&
neighboringRanks
);
void
_computeToSend
();
void
_computeToSend
(
const
std
::
optional
<
std
::
vector
<
int
>>&
neighboringRanks
);
public
:
public
:
virtual
void
preProMPI
(
const
std
::
optional
<
std
::
vector
<
int
>>&
neighboringRanks
=
std
::
nullopt
)
override
;
virtual
void
preProMPI
(
const
std
::
optional
<
std
::
vector
<
int
>>&
neighboringRanks
=
std
::
nullopt
)
override
;
...
...
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