Skip to content
Snippets Groups Projects
Commit 4db3e943 authored by Thomas Witkowski's avatar Thomas Witkowski
Browse files

Fixed memory issue in block matrix solver.

parent f19a9432
No related branches found
No related tags found
No related merge requests found
...@@ -26,7 +26,7 @@ namespace AMDiS { ...@@ -26,7 +26,7 @@ namespace AMDiS {
double wtime = MPI::Wtime(); double wtime = MPI::Wtime();
createMatVec(*seqMat); prepare();
const FiniteElemSpace *feSpace = componentSpaces[0]; const FiniteElemSpace *feSpace = componentSpaces[0];
nComponents = seqMat->getNumRows(); nComponents = seqMat->getNumRows();
...@@ -198,6 +198,7 @@ namespace AMDiS { ...@@ -198,6 +198,7 @@ namespace AMDiS {
VecRestoreArray(tmp, &vecPointer); VecRestoreArray(tmp, &vecPointer);
} }
VecDestroy(&petscSolVec);
// === Synchronize DOFs at common DOFs, i.e., DOFs that correspond to === // === Synchronize DOFs at common DOFs, i.e., DOFs that correspond to ===
// === more than one partition. === // === more than one partition. ===
...@@ -225,9 +226,10 @@ namespace AMDiS { ...@@ -225,9 +226,10 @@ namespace AMDiS {
{ {
FUNCNAME("PetscSolverGlobalBlockMatrix::destroyVectorData()"); FUNCNAME("PetscSolverGlobalBlockMatrix::destroyVectorData()");
for (unsigned int i = 0; i < nestVec.size(); i++)
VecDestroy(&(nestVec[i]));
vecDestroy(); vecDestroy();
VecDestroy(&petscSolVec);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment