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
58fe68b1
Commit
58fe68b1
authored
19 years ago
by
Markus Blatt
Browse files
Options
Downloads
Patches
Plain Diff
Forgot to modify tests.
All should run through now! [[Imported from SVN: r2434]]
parent
3022bae7
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
istl/paamg/indicescoarsener.hh
+8
-8
8 additions, 8 deletions
istl/paamg/indicescoarsener.hh
istl/paamg/test/galerkintest.cc
+10
-10
10 additions, 10 deletions
istl/paamg/test/galerkintest.cc
with
18 additions
and
18 deletions
istl/paamg/indicescoarsener.hh
+
8
−
8
View file @
58fe68b1
...
...
@@ -81,7 +81,7 @@ namespace Dune
aggregates_
[
edge
.
target
()]
=
number_
;
}
size_t
operator
()(
const
T
G
&
global
)
size_t
operator
()(
const
G
lobalIndex
&
global
)
{
size_t
current
=
number_
;
++
number_
;
...
...
@@ -113,12 +113,12 @@ namespace Dune
isPublic_
=
false
;
}
void
attribute
(
const
T
A
&
attribute
)
void
attribute
(
const
A
ttribute
&
attribute
)
{
attribute_
=
attribute
;
}
T
A
attribute
()
A
ttribute
attribute
()
{
return
attribute_
;
}
...
...
@@ -126,7 +126,7 @@ namespace Dune
private
:
size_t
number_
;
bool
isPublic_
;
T
A
attribute_
;
A
ttribute
attribute_
;
AggregatesMap
<
Vertex
>&
aggregates_
;
};
...
...
@@ -260,8 +260,8 @@ namespace Dune
}
// Build remote index list
typedef
RemoteIndexListModifier
<
T
G
,
TA
,
N
,
false
>
Modifier
;
typedef
typename
RemoteIndices
::
RemoteIndex
Type
RemoteIndex
;
typedef
RemoteIndexListModifier
<
T
,
false
>
Modifier
;
typedef
typename
RemoteIndices
::
RemoteIndex
RemoteIndex
;
typedef
typename
IndexSet
::
const_iterator
IndexIterator
;
Modifier
coarseList
=
coarseRemote
.
template
getModifier
<
false
,
true
>(
process
);
...
...
@@ -271,7 +271,7 @@ namespace Dune
for
(
IndexIterator
index
=
coarseIndices
.
begin
();
index
!=
iend
;
++
index
,
++
i
)
if
(
attributes
[
i
]
!=
std
::
numeric_limits
<
char
>::
max
())
{
// remote index is present
coarseList
.
insert
(
RemoteIndex
(
T
A
(
attributes
[
i
]),
&
(
*
index
)));
coarseList
.
insert
(
RemoteIndex
(
A
ttribute
(
attributes
[
i
]),
&
(
*
index
)));
}
}
...
...
@@ -280,7 +280,7 @@ namespace Dune
// snyc the index set and the remote indices to recompute missing
// indices
IndicesSyncer
<
TG
,
TA
,
N
>
syncer
(
coarseIndices
,
coarseRemote
);
IndicesSyncer
<
IndexSet
>
syncer
(
coarseIndices
,
coarseRemote
);
syncer
.
sync
(
renumberer
);
}
...
...
This diff is collapsed.
Click to expand it.
istl/paamg/test/galerkintest.cc
+
10
−
10
View file @
58fe68b1
...
...
@@ -17,9 +17,9 @@ enum GridFlag { owner, overlap };
typedef
Dune
::
ParallelLocalIndex
<
GridFlag
>
LocalIndex
;
typedef
Dune
::
IndexSet
<
int
,
LocalIndex
,
101
>
IndexSet
;
typedef
Dune
::
RemoteIndices
<
int
,
GridFlag
,
101
>
RemoteIndices
;
typedef
Dune
::
Interface
<
int
,
GridFlag
,
101
>
Interface
;
typedef
Dune
::
BufferedCommunicator
<
int
,
GridFlag
,
101
>
Communicator
;
typedef
Dune
::
RemoteIndices
<
IndexSet
>
RemoteIndices
;
typedef
Dune
::
Interface
<
IndexSet
>
Interface
;
typedef
Dune
::
BufferedCommunicator
<
IndexSet
>
Communicator
;
template
<
int
N
,
class
M
>
void
setupPattern
(
M
&
mat
,
IndexSet
&
indices
,
int
overlapStart
,
int
overlapEnd
,
...
...
@@ -288,13 +288,13 @@ void testCoarsenIndices()
typename
Dune
::
PropertyMapTypeSelector
<
Dune
::
Amg
::
VertexVisitedTag
,
PropertiesGraph
>::
Type
visitedMap
=
Dune
::
get
(
Dune
::
Amg
::
VertexVisitedTag
(),
pg
);
Dune
::
Amg
::
IndicesCoarsener
<
Dune
::
EnumItem
<
GridFlag
,
overlap
>
,
int
,
GridFlag
,
101
>::
coarsen
(
indices
,
remoteIndices
,
pg
,
visitedMap
,
aggregatesMap
,
coarseIndices
,
coarseRemote
);
Dune
::
Amg
::
IndicesCoarsener
<
Dune
::
EnumItem
<
GridFlag
,
overlap
>
,
IndexSet
>::
coarsen
(
indices
,
remoteIndices
,
pg
,
visitedMap
,
aggregatesMap
,
coarseIndices
,
coarseRemote
);
std
::
cout
<<
rank
<<
": coarse indices: "
<<
coarseIndices
<<
std
::
endl
;
std
::
cout
<<
rank
<<
": coarse remote indices:"
<<
coarseRemote
<<
std
::
endl
;
...
...
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