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
d7283603
Commit
d7283603
authored
19 years ago
by
Markus Blatt
Browse files
Options
Downloads
Patches
Plain Diff
Removed introduced segfault.
[[Imported from SVN: r3557]]
parent
91914a42
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
istl/paamg/graphcreator.hh
+12
-1
12 additions, 1 deletion
istl/paamg/graphcreator.hh
istl/paamg/hierarchy.hh
+10
-3
10 additions, 3 deletions
istl/paamg/hierarchy.hh
istl/paamg/indicescoarsener.hh
+0
-3
0 additions, 3 deletions
istl/paamg/indicescoarsener.hh
with
22 additions
and
7 deletions
istl/paamg/graphcreator.hh
+
12
−
1
View file @
d7283603
...
...
@@ -34,7 +34,7 @@ namespace Dune
typedef
Tuple
<
MatrixGraph
*
,
PropertiesGraph
*>
GraphTuple
;
template
<
class
OF
,
class
T
>
static
GraphTuple
create
(
const
M
&
matrix
,
T
&
excluded
,
static
GraphTuple
create
(
const
M
atrixGraph
&
matrix
,
T
&
excluded
,
const
SequentialInformation
&
pinfo
,
const
OF
&
)
{
...
...
@@ -43,6 +43,11 @@ namespace Dune
return
GraphTuple
(
mg
,
pg
);
}
static
void
free
(
GraphTuple
&
graphs
)
{
delete
Element
<
1
>::
get
(
graphs
);
}
};
template
<
class
M
>
...
...
@@ -79,6 +84,12 @@ namespace Dune
PropertiesGraph
*
pg
=
new
PropertiesGraph
(
*
sg
,
IdentityMap
(),
sg
->
getEdgeIndexMap
());
return
GraphTuple
(
mg
,
pg
,
sg
);
}
static
void
free
(
GraphTuple
&
graphs
)
{
delete
Element
<
2
>::
get
(
graphs
);
delete
Element
<
1
>::
get
(
graphs
);
}
};
}
//namespace Amg
...
...
This diff is collapsed.
Click to expand it.
istl/paamg/hierarchy.hh
+
10
−
3
View file @
d7283603
...
...
@@ -515,6 +515,8 @@ namespace Dune
*
aggregatesMap
,
*
coarseInfo
);
GraphCreator
::
free
(
graphs
);
parallelInformation_
.
addCoarser
(
*
coarseInfo
);
PInfoIterator
fineInfo
=
infoLevel
;
...
...
@@ -548,6 +550,8 @@ namespace Dune
*
aggregatesMap
,
aggregates
,
OverlapFlags
());
delete
Element
<
0
>::
get
(
graphs
);
productBuilder
.
calculate
(
mlevel
->
getmat
(),
*
aggregatesMap
,
*
coarseMatrix
);
dinfo
<<
"Calculation of Galerkin product took "
<<
watch
.
elapsed
()
<<
" seconds."
<<
std
::
endl
;
...
...
@@ -584,13 +588,16 @@ namespace Dune
typedef
typename
ParallelInformationHierarchy
::
Iterator
InfoIterator
;
AggregatesMapIterator
amap
=
aggregatesMaps_
.
rbegin
();
InfoIterator
info
=
parallelInformation_
.
fin
est
();
InfoIterator
info
=
parallelInformation_
.
coars
est
();
int
i
=
0
;
for
(
Iterator
level
=
matrices_
.
coarsest
(),
finest
=
matrices_
.
finest
();
level
!=
finest
;
--
level
,
--
info
,
++
amap
)
{
std
::
cout
<<
"Freeing level "
<<
i
++<<
std
::
endl
;
(
*
amap
)
->
free
();
delete
*
amap
;
delete
&
level
->
getmat
();
delete
&
(
*
info
);
}
delete
*
amap
;
delete
&
(
*
info
);
}
template
<
class
M
,
class
IS
,
class
A
>
...
...
This diff is collapsed.
Click to expand it.
istl/paamg/indicescoarsener.hh
+
0
−
3
View file @
d7283603
...
...
@@ -227,9 +227,6 @@ namespace Dune
coarseIndices
.
endResize
();
assert
(
coarseIndices
.
size
()
==
renumberer
);
assert
((
coarseIndices
.
begin
()
+
(
coarseIndices
.
size
()
-
1
))
->
local
()
==
renumberer
-
1
);
// Reset the visited flags
typedef
typename
Graph
::
ConstVertexIterator
VertexIterator
;
VertexIterator
vend
=
fineGraph
.
end
();
...
...
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