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
47a855b8
Commit
47a855b8
authored
18 years ago
by
Markus Blatt
Browse files
Options
Downloads
Patches
Plain Diff
Removed redundant tripel class. We are using Tuple instead
[[Imported from SVN: r719]]
parent
aeb20354
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
istl/owneroverlapcopy.hh
+24
-24
24 additions, 24 deletions
istl/owneroverlapcopy.hh
with
24 additions
and
24 deletions
istl/owneroverlapcopy.hh
+
24
−
24
View file @
47a855b8
...
...
@@ -19,7 +19,7 @@
#endif
#include
<dune/common/t
ripel
.hh>
#include
<dune/common/t
uples
.hh>
#include
<dune/common/enumset.hh>
#if HAVE_MPI
...
...
@@ -84,14 +84,14 @@ namespace Dune {
* The triple consists of the global index and the local
* index and an attribute
*/
typedef
tripel
<
GlobalIdType
,
LocalIdType
,
int
>
IndexTripel
;
typedef
Tuple
<
GlobalIdType
,
LocalIdType
,
int
>
IndexTripel
;
/**
* @brief A triple describing a remote index.
*
* The triple consists of a process number and the global index and
* the attribute of the index at the remote process.
*/
typedef
tripel
<
int
,
GlobalIdType
,
int
>
RemoteIndexTripel
;
typedef
Tuple
<
int
,
GlobalIdType
,
int
>
RemoteIndexTripel
;
/**
* @brief Add a new index triple to the set of local indices.
...
...
@@ -100,9 +100,9 @@ namespace Dune {
*/
void
addLocalIndex
(
const
IndexTripel
&
x
)
{
if
(
x
.
third
!=
OwnerOverlapCopyAttributeSet
::
owner
&&
x
.
third
!=
OwnerOverlapCopyAttributeSet
::
overlap
&&
x
.
third
!=
OwnerOverlapCopyAttributeSet
::
copy
)
if
(
Element
<
2
>::
get
(
x
)
!=
OwnerOverlapCopyAttributeSet
::
owner
&&
Element
<
2
>::
get
(
x
)
!=
OwnerOverlapCopyAttributeSet
::
overlap
&&
Element
<
2
>::
get
(
x
)
!=
OwnerOverlapCopyAttributeSet
::
copy
)
DUNE_THROW
(
ISTLError
,
"OwnerOverlapCopyCommunication: global index not in index set"
);
localindices
.
insert
(
x
);
}
...
...
@@ -114,9 +114,9 @@ namespace Dune {
*/
void
addRemoteIndex
(
const
RemoteIndexTripel
&
x
)
{
if
(
x
.
third
!=
OwnerOverlapCopyAttributeSet
::
owner
&&
x
.
third
!=
OwnerOverlapCopyAttributeSet
::
overlap
&&
x
.
third
!=
OwnerOverlapCopyAttributeSet
::
copy
)
if
(
Element
<
2
>::
get
(
x
)
!=
OwnerOverlapCopyAttributeSet
::
owner
&&
Element
<
2
>::
get
(
x
)
!=
OwnerOverlapCopyAttributeSet
::
overlap
&&
Element
<
2
>::
get
(
x
)
!=
OwnerOverlapCopyAttributeSet
::
copy
)
DUNE_THROW
(
ISTLError
,
"OwnerOverlapCopyCommunication: global index not in index set"
);
remoteindices
.
insert
(
x
);
}
...
...
@@ -441,13 +441,13 @@ namespace Dune {
pis
.
beginResize
();
for
(
localindex_iterator
i
=
indexinfo
.
localIndices
().
begin
();
i
!=
indexinfo
.
localIndices
().
end
();
++
i
)
{
if
(
i
->
third
==
OwnerOverlapCopyAttributeSet
::
owner
)
pis
.
add
(
i
->
first
,
LI
(
i
->
second
,
OwnerOverlapCopyAttributeSet
::
owner
,
true
));
if
(
i
->
third
==
OwnerOverlapCopyAttributeSet
::
overlap
)
pis
.
add
(
i
->
first
,
LI
(
i
->
second
,
OwnerOverlapCopyAttributeSet
::
overlap
,
true
));
if
(
i
->
third
==
OwnerOverlapCopyAttributeSet
::
copy
)
pis
.
add
(
i
->
first
,
LI
(
i
->
second
,
OwnerOverlapCopyAttributeSet
::
copy
,
true
));
// std::cout << cc.rank() << ": adding index " <<
i->first << " " << i->second << " " << i->third
<< std::endl;
if
(
Element
<
2
>::
get
(
*
i
)
==
OwnerOverlapCopyAttributeSet
::
owner
)
pis
.
add
(
Element
<
0
>::
get
(
*
i
),
LI
(
Element
<
1
>::
get
(
*
i
)
,
OwnerOverlapCopyAttributeSet
::
owner
,
true
));
if
(
Element
<
2
>::
get
(
*
i
)
==
OwnerOverlapCopyAttributeSet
::
overlap
)
pis
.
add
(
Element
<
0
>::
get
(
*
i
),
LI
(
Element
<
1
>::
get
(
*
i
)
,
OwnerOverlapCopyAttributeSet
::
overlap
,
true
));
if
(
Element
<
2
>::
get
(
*
i
)
==
OwnerOverlapCopyAttributeSet
::
copy
)
pis
.
add
(
Element
<
0
>::
get
(
*
i
),
LI
(
Element
<
1
>::
get
(
*
i
)
,
OwnerOverlapCopyAttributeSet
::
copy
,
true
));
// std::cout << cc.rank() << ": adding index " <<
Element<0>::get(*i) << " " << Element<1>::get(*i) << " " << Element<2>::get(*i)
<< std::endl;
}
pis
.
endResize
();
...
...
@@ -457,32 +457,32 @@ namespace Dune {
if
(
indexinfo
.
remoteIndices
().
size
()
>
0
)
{
remoteindex_iterator
i
=
indexinfo
.
remoteIndices
().
begin
();
int
p
=
i
->
first
;
int
p
=
Element
<
0
>::
get
(
*
i
)
;
RILM
modifier
=
ri
.
template
getModifier
<
false
,
true
>(
p
);
typename
PIS
::
const_iterator
pi
=
pis
.
begin
();
for
(
;
i
!=
indexinfo
.
remoteIndices
().
end
();
++
i
)
{
// handle processor change
if
(
p
!=
i
->
first
)
if
(
p
!=
Element
<
0
>::
get
(
*
i
)
)
{
p
=
i
->
first
;
p
=
Element
<
0
>::
get
(
*
i
)
;
modifier
=
ri
.
template
getModifier
<
false
,
true
>(
p
);
pi
=
pis
.
begin
();
}
// position to correct entry in parallel index set
while
(
pi
->
global
()
!=
i
->
second
&&
pi
!=
pis
.
end
())
while
(
pi
->
global
()
!=
Element
<
1
>::
get
(
*
i
)
&&
pi
!=
pis
.
end
())
++
pi
;
if
(
pi
==
pis
.
end
())
DUNE_THROW
(
ISTLError
,
"OwnerOverlapCopyCommunication: global index not in index set"
);
// insert entry
// std::cout << cc.rank() << ": adding remote index " <<
i->first << " " << i->second << " " << i->third
<< std::endl;
if
(
i
->
third
==
OwnerOverlapCopyAttributeSet
::
owner
)
// std::cout << cc.rank() << ": adding remote index " <<
Element<0>::get(*i) << " " << Element<1>::get(*i) << " " << Element<2>::get(*i)
<< std::endl;
if
(
Element
<
2
>::
get
(
*
i
)
==
OwnerOverlapCopyAttributeSet
::
owner
)
modifier
.
insert
(
RX
(
OwnerOverlapCopyAttributeSet
::
owner
,
&
(
*
pi
)));
if
(
i
->
third
==
OwnerOverlapCopyAttributeSet
::
overlap
)
if
(
Element
<
2
>::
get
(
*
i
)
==
OwnerOverlapCopyAttributeSet
::
overlap
)
modifier
.
insert
(
RX
(
OwnerOverlapCopyAttributeSet
::
overlap
,
&
(
*
pi
)));
if
(
i
->
third
==
OwnerOverlapCopyAttributeSet
::
copy
)
if
(
Element
<
2
>::
get
(
*
i
)
==
OwnerOverlapCopyAttributeSet
::
copy
)
modifier
.
insert
(
RX
(
OwnerOverlapCopyAttributeSet
::
copy
,
&
(
*
pi
)));
}
}
...
...
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