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

Small bugfix.

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