Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Backofen, Rainer
amdis
Commits
4db3e943
Commit
4db3e943
authored
Dec 08, 2012
by
Thomas Witkowski
Browse files
Fixed memory issue in block matrix solver.
parent
f19a9432
Changes
1
Hide whitespace changes
Inline
Side-by-side
AMDiS/src/parallel/PetscSolverGlobalBlockMatrix.cc
View file @
4db3e943
...
...
@@ -26,7 +26,7 @@ namespace AMDiS {
double
wtime
=
MPI
::
Wtime
();
c
re
ateMatVec
(
*
seqMat
);
p
re
pare
(
);
const
FiniteElemSpace
*
feSpace
=
componentSpaces
[
0
];
nComponents
=
seqMat
->
getNumRows
();
...
...
@@ -198,6 +198,7 @@ namespace AMDiS {
VecRestoreArray
(
tmp
,
&
vecPointer
);
}
VecDestroy
(
&
petscSolVec
);
// === Synchronize DOFs at common DOFs, i.e., DOFs that correspond to ===
// === more than one partition. ===
...
...
@@ -225,9 +226,10 @@ namespace AMDiS {
{
FUNCNAME
(
"PetscSolverGlobalBlockMatrix::destroyVectorData()"
);
for
(
unsigned
int
i
=
0
;
i
<
nestVec
.
size
();
i
++
)
VecDestroy
(
&
(
nestVec
[
i
]));
vecDestroy
();
VecDestroy
(
&
petscSolVec
);
}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment