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
a1800633
Commit
a1800633
authored
19 years ago
by
Markus Blatt
Browse files
Options
Downloads
Patches
Plain Diff
Removed bug in parallel amg code.
communication objects in smoothers were not valid. [[Imported from SVN: r469]]
parent
3a879371
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
istl/paamg/amg.hh
+3
-3
3 additions, 3 deletions
istl/paamg/amg.hh
istl/paamg/galerkin.hh
+1
-1
1 addition, 1 deletion
istl/paamg/galerkin.hh
istl/paamg/hierarchy.hh
+6
-3
6 additions, 3 deletions
istl/paamg/hierarchy.hh
istl/paamg/smoother.hh
+1
-1
1 addition, 1 deletion
istl/paamg/smoother.hh
with
11 additions
and
8 deletions
istl/paamg/amg.hh
+
3
−
3
View file @
a1800633
...
...
@@ -208,12 +208,11 @@ namespace Dune
RIterator
rhs
=
rhs_
->
finest
();
DIterator
lhs
=
lhs_
->
finest
();
if
(
rhs
!=
rhs_
->
coarsest
())
if
(
rhs
!=
rhs_
->
coarsest
())
{
smoother
->
pre
(
*
lhs
,
*
rhs
);
if
(
smoother
!=
coarsest
)
for
(
++
smoother
,
++
lhs
,
++
rhs
;
smoother
!=
coarsest
;
++
smoother
,
++
lhs
,
++
rhs
)
smoother
->
pre
(
*
lhs
,
*
rhs
);
}
if
(
buildHierarchy_
)
{
// Create the coarse Solver
...
...
@@ -223,6 +222,7 @@ namespace Dune
typename
ConstructionTraits
<
Smoother
>::
Arguments
cargs
;
cargs
.
setArgs
(
sargs
);
cargs
.
setMatrix
(
matrices_
->
matrices
().
coarsest
()
->
getmat
());
cargs
.
setComm
(
*
matrices_
->
parallelInformation
().
coarsest
());
coarseSmoother_
=
ConstructionTraits
<
Smoother
>::
construct
(
cargs
);
scalarProduct_
=
new
OverlappingSchwarzScalarProduct
<
X
,
P
>
(
*
matrices_
->
parallelInformation
().
coarsest
());
...
...
This diff is collapsed.
Click to expand it.
istl/paamg/galerkin.hh
+
1
−
1
View file @
a1800633
...
...
@@ -522,7 +522,7 @@ namespace Dune
for
(
ConstIterator
vertex
=
graph
.
begin
();
vertex
!=
end
;
++
vertex
)
{
const
IndexPair
*
pair
=
lookup
.
pair
(
*
vertex
);
if
(
pair
!=
0
&&
pair
->
local
().
attribute
())
{
if
(
pair
!=
0
&&
overlap
.
contains
(
pair
->
local
().
attribute
())
)
{
overlapVertices
[
overlapCount
].
aggregate
=
aggregates
[
pair
->
local
()];
overlapVertices
[
overlapCount
].
vertex
=
pair
->
local
();
++
overlapCount
;
...
...
This diff is collapsed.
Click to expand it.
istl/paamg/hierarchy.hh
+
6
−
3
View file @
a1800633
...
...
@@ -626,13 +626,16 @@ namespace Dune
const
typename
SmootherTraits
<
S
>::
Arguments
&
sargs
)
const
{
assert
(
smoothers
.
levels
()
==
0
);
typedef
typename
ParallelMatrixHierarchy
::
ConstIterator
Iterator
;
typedef
typename
ParallelMatrixHierarchy
::
ConstIterator
MatrixIterator
;
typedef
typename
ParallelInformationHierarchy
::
ConstIterator
PinfoIterator
;
typename
ConstructionTraits
<
S
>::
Arguments
cargs
;
cargs
.
setArgs
(
sargs
);
Iterator
coarsest
=
matrices_
.
coars
est
();
Pinfo
Iterator
pinfo
=
parallelInformation_
.
fin
est
();
for
(
Iterator
matrix
=
matrices_
.
finest
();
matrix
!=
coarsest
;
++
matrix
)
{
for
(
MatrixIterator
matrix
=
matrices_
.
finest
(),
coarsest
=
matrices_
.
coarsest
();
matrix
!=
coarsest
;
++
matrix
,
++
pinfo
)
{
cargs
.
setMatrix
(
matrix
->
getmat
());
cargs
.
setComm
(
*
pinfo
);
smoothers
.
addCoarser
(
cargs
);
}
}
...
...
This diff is collapsed.
Click to expand it.
istl/paamg/smoother.hh
+
1
−
1
View file @
a1800633
...
...
@@ -87,7 +87,7 @@ namespace Dune
}
void
setComm
(
const
C
&
comm
)
{
comm_
=
&
comm
_
;
comm_
=
&
comm
;
}
private
:
...
...
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