Commit 14e8e4f8 authored by Thomas Witkowski's avatar Thomas Witkowski

Small bugfix.

parent 8f20263c
......@@ -492,7 +492,10 @@ namespace AMDiS {
MatDestroy(&matIntInt);
KSPDestroy(&kspInterior);
VecDestroy(&petscSolVec);
if (petscSolVec != PETSC_NULL)
VecDestroy(&petscSolVec);
petscSolVec = PETSC_NULL;
}
......
......@@ -36,6 +36,7 @@ namespace AMDiS {
public:
PetscSolverGlobalMatrix()
: PetscSolver(),
petscSolVec(PETSC_NULL),
d_nnz(NULL),
o_nnz(NULL),
lastMeshNnz(0),
......
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