Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
Timo Koch
dune-common
Commits
0151cdf3
Commit
0151cdf3
authored
13 years ago
by
Markus Blatt
Browse files
Options
Downloads
Patches
Plain Diff
Make comparison correct for ParellelLocalIndex.
[[Imported from SVN: r6444]]
parent
9e3324b8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dune/common/parallel/indexset.hh
+8
-2
8 additions, 2 deletions
dune/common/parallel/indexset.hh
dune/common/parallel/plocalindex.hh
+19
-0
19 additions, 0 deletions
dune/common/parallel/plocalindex.hh
with
27 additions
and
2 deletions
dune/common/parallel/indexset.hh
+
8
−
2
View file @
0151cdf3
...
...
@@ -1109,9 +1109,15 @@ namespace Dune
typedef
typename
ParallelIndexSet
<
TG
,
TL
,
N
>::
const_iterator
Iter
;
typedef
typename
ParallelIndexSet
<
TG1
,
TL1
,
N1
>::
const_iterator
Iter1
;
Iter
iter
=
idxset
.
begin
();
for
(
Iter1
iter1
=
idxset1
.
begin
();
iter1
!=
idxset1
.
end
();
++
iter
,
++
iter1
)
if
(
*
iter1
!=
*
iter
)
for
(
Iter1
iter1
=
idxset1
.
begin
();
iter1
!=
idxset1
.
end
();
++
iter
,
++
iter1
)
{
if
(
iter1
->
global
()
!=
iter
->
global
()
)
return
false
;
typedef
typename
ParallelIndexSet
<
TG
,
TL
,
N
>::
LocalIndex
PI
;
const
PI
&
pi
=
iter
->
local
(),
pi1
=
iter1
->
local
();
if
(
pi
!=
pi1
)
return
false
;
}
return
true
;
}
...
...
This diff is collapsed.
Click to expand it.
dune/common/parallel/plocalindex.hh
+
19
−
0
View file @
0151cdf3
...
...
@@ -168,6 +168,25 @@ namespace Dune
};
template
<
typename
T
>
bool
operator
==
(
const
ParallelLocalIndex
<
T
>&
p1
,
const
ParallelLocalIndex
<
T
>&
p2
)
{
if
(
p1
.
local
()
!=
p2
.
local
())
return
false
;
if
(
p1
.
attribute
()
!=
p2
.
attribute
())
return
false
;
if
(
p1
.
isPublic
()
!=
p2
.
isPublic
())
return
false
;
return
true
;
}
template
<
typename
T
>
bool
operator
!=
(
const
ParallelLocalIndex
<
T
>&
p1
,
const
ParallelLocalIndex
<
T
>&
p2
)
{
return
!
(
p1
==
p2
);
}
template
<
typename
T
>
struct
LocalIndexComparator
<
ParallelLocalIndex
<
T
>
>
...
...
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