Commit 4db3e943 authored by Thomas Witkowski's avatar Thomas Witkowski

Fixed memory issue in block matrix solver.

parent f19a9432
......@@ -26,7 +26,7 @@ namespace AMDiS {
double wtime = MPI::Wtime();
createMatVec(*seqMat);
prepare();
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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment