Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-istl
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
Service Desk
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
Core Modules
dune-istl
Commits
3cb81051
Commit
3cb81051
authored
15 years ago
by
Markus Blatt
Browse files
Options
Downloads
Patches
Plain Diff
Send new overlap vertices.
[[Imported from SVN: r1078]]
parent
250b5fa4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
istl/repartition.hh
+10
-3
10 additions, 3 deletions
istl/repartition.hh
with
10 additions
and
3 deletions
istl/repartition.hh
+
10
−
3
View file @
3cb81051
...
...
@@ -426,18 +426,24 @@ namespace Dune
* computed.
*
* @param g the local graph
* @param part Where the vertices become owner
* @param vtx the given vertex
* @param parmetisVtxMapping mapping between Dune and ParMETIS vertices
* @param indexSet the indexSet
* @param neighbor the output set to store the neighbor indices in.
*/
template
<
class
OwnerSet
,
class
Graph
,
class
IS
,
class
GI
>
void
getNeighbor
(
const
Graph
&
g
,
typename
Graph
::
VertexDescriptor
vtx
,
const
IS
&
indexSet
,
std
::
set
<
GI
>&
neighbor
)
{
void
getNeighbor
(
const
Graph
&
g
,
int
*
part
,
typename
Graph
::
VertexDescriptor
vtx
,
const
IS
&
indexSet
,
ParmetisDuneIndexMap
&
parmetisVtxMapping
,
int
toPe
,
std
::
set
<
GI
>&
neighbor
)
{
typedef
typename
Graph
::
ConstEdgeIterator
Iter
;
for
(
Iter
edge
=
g
.
beginEdges
(
vtx
),
end
=
g
.
endEdges
(
vtx
);
edge
!=
end
;
++
edge
)
{
const
typename
IS
::
IndexPair
*
pindex
=
indexSet
.
pair
(
edge
.
target
());
assert
(
pindex
);
if
(
!
OwnerSet
::
contains
(
pindex
->
local
().
attribute
()))
if
(
part
[
parmetisVtxMapping
.
toLocalParmetis
(
pindex
->
local
())]
!=
toPe
)
// is sent to another process and therefore becomes overlap
neighbor
.
insert
(
pindex
->
global
());
}
}
...
...
@@ -472,7 +478,8 @@ namespace Dune
{
if
(
part
[
parmetisVtxMapping
.
toLocalParmetis
(
index
->
local
())]
==
toPe
)
{
getNeighbor
<
OwnerSet
>
(
graph
,
index
->
local
(),
indexSet
,
overlapSet
);
getNeighbor
<
OwnerSet
>
(
graph
,
part
,
index
->
local
(),
indexSet
,
parmetisVtxMapping
,
toPe
,
overlapSet
);
ownerVec
.
push_back
(
index
->
global
());
}
}
...
...
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