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
85e7f959
Commit
85e7f959
authored
14 years ago
by
Rebecca Neumann
Browse files
Options
Downloads
Patches
Plain Diff
add missing graphproperties for novlp AMG
[[Imported from SVN: r1328]]
parent
c98c85d6
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
dune/istl/paamg/graphcreator.hh
+41
-0
41 additions, 0 deletions
dune/istl/paamg/graphcreator.hh
with
41 additions
and
0 deletions
dune/istl/paamg/graphcreator.hh
+
41
−
0
View file @
85e7f959
...
...
@@ -91,6 +91,47 @@ namespace Dune
}
};
template
<
class
M
>
struct
PropertiesGraphCreator
<
M
,
SolverCategory
::
nonoverlapping
>
{
typedef
typename
M
::
matrix_type
Matrix
;
typedef
Dune
::
Amg
::
MatrixGraph
<
const
Matrix
>
MatrixGraph
;
typedef
Dune
::
Amg
::
SubGraph
<
MatrixGraph
,
std
::
vector
<
bool
>
>
SubGraph
;
typedef
Dune
::
Amg
::
PropertiesGraph
<
SubGraph
,
VertexProperties
,
EdgeProperties
,
IdentityMap
,
typename
SubGraph
::
EdgeIndexMap
>
PropertiesGraph
;
typedef
Dune
::
tuple
<
MatrixGraph
*
,
PropertiesGraph
*
,
SubGraph
*>
GraphTuple
;
template
<
class
OF
,
class
T
,
class
PI
>
static
GraphTuple
create
(
const
M
&
matrix
,
T
&
excluded
,
PI
&
pinfo
,
const
OF
&
of
)
{
typedef
OF
OverlapFlags
;
MatrixGraph
*
mg
=
new
MatrixGraph
(
matrix
.
getmat
());
typedef
typename
PI
::
ParallelIndexSet
ParallelIndexSet
;
typedef
typename
ParallelIndexSet
::
const_iterator
IndexIterator
;
IndexIterator
iend
=
pinfo
.
indexSet
().
end
();
for
(
IndexIterator
index
=
pinfo
.
indexSet
().
begin
();
index
!=
iend
;
++
index
)
excluded
[
index
->
local
()]
=
of
.
contains
(
index
->
local
().
attribute
());
SubGraph
*
sg
=
new
SubGraph
(
*
mg
,
excluded
);
PropertiesGraph
*
pg
=
new
PropertiesGraph
(
*
sg
,
IdentityMap
(),
sg
->
getEdgeIndexMap
());
return
GraphTuple
(
mg
,
pg
,
sg
);
}
static
void
free
(
GraphTuple
&
graphs
)
{
delete
get
<
2
>
(
graphs
);
delete
get
<
1
>
(
graphs
);
}
};
}
//namespace Amg
}
// namespace Dune
#endif
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