Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Backofen, Rainer
amdis
Commits
4db3e943
Commit
4db3e943
authored
Dec 08, 2012
by
Thomas Witkowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed memory issue in block matrix solver.
parent
f19a9432
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
AMDiS/src/parallel/PetscSolverGlobalBlockMatrix.cc
AMDiS/src/parallel/PetscSolverGlobalBlockMatrix.cc
+5
-3
No files found.
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
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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