Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-gfe
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sander, Oliver
dune-gfe
Commits
8bc1a07e
Commit
8bc1a07e
authored
10 years ago
by
Oliver Sander
Committed by
sander
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
More cleanup
[[Imported from SVN: r9747]]
parent
1248a52d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/gfe/parallel/globalindex.hh
+5
-8
5 additions, 8 deletions
dune/gfe/parallel/globalindex.hh
with
5 additions
and
8 deletions
dune/gfe/parallel/globalindex.hh
+
5
−
8
View file @
8bc1a07e
...
@@ -188,8 +188,7 @@ public:
...
@@ -188,8 +188,7 @@ public:
/**********************************************************************************************************************/
/**********************************************************************************************************************/
GlobalUniqueIndex
(
const
GridView
&
gridview
)
GlobalUniqueIndex
(
const
GridView
&
gridview
)
:
gridview_
(
gridview
),
:
gridview_
(
gridview
),
uniqueEntityPartition_
(
gridview
),
uniqueEntityPartition_
(
gridview
)
size_
(
gridview
.
comm
().
size
())
{
{
int
rank
=
gridview
.
comm
().
rank
();
int
rank
=
gridview
.
comm
().
rank
();
int
size
=
gridview
.
comm
().
size
();
int
size
=
gridview
.
comm
().
size
();
...
@@ -214,16 +213,14 @@ public:
...
@@ -214,16 +213,14 @@ public:
* for this; first, we gather the number of locally owned entities on the root process and, second, we
* for this; first, we gather the number of locally owned entities on the root process and, second, we
* broadcast the array to all processes where the respective offset can be calculated. */
* broadcast the array to all processes where the respective offset can be calculated. */
int
offset
[
size
];
std
::
vector
<
int
>
offset
(
size
);
std
::
fill
(
offset
.
begin
(),
offset
.
end
(),
0
);
for
(
int
ii
=
0
;
ii
<
size
;
ii
++
)
offset
[
ii
]
=
0
;
/** gather number of locally owned entities on root process */
/** gather number of locally owned entities on root process */
collective
.
template
gather
<
int
>(
&
nLocalEntity_
,
offset
,
1
,
0
);
collective
.
template
gather
<
int
>(
&
nLocalEntity_
,
offset
.
data
()
,
1
,
0
);
/** broadcast the array containing the number of locally owned entities to all processes */
/** broadcast the array containing the number of locally owned entities to all processes */
collective
.
template
broadcast
<
int
>(
offset
,
size
_
,
0
);
collective
.
template
broadcast
<
int
>(
offset
.
data
()
,
size
,
0
);
indexOffset_
.
clear
();
indexOffset_
.
clear
();
indexOffset_
.
resize
(
size
,
0
);
indexOffset_
.
resize
(
size
,
0
);
...
...
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