Commit 225b2813 authored by Reuther, Sebastian's avatar Reuther, Sebastian

fixes #4

parent 530df21a
......@@ -408,7 +408,7 @@ namespace AMDiS { namespace Parallel {
MatNullSpace matNullspace;
Vec nullspaceBasis;
SystemVector *basisVec;
SystemVector *basisVec = NULL;
if (nullspace.size() > 0 ||
hasConstantNullspace ||
constNullspaceComponent.size() > 0) {
......@@ -471,9 +471,7 @@ namespace AMDiS { namespace Parallel {
}
// delete allocated memory
if ((nullspace.size() > 0 || hasConstantNullspace) && constNullspaceComponent.size() > 0) {
delete basisVec;
}
delete basisVec;
// === Transfere values from PETSc's solution vectors to the DOF vectors. ===
PetscScalar *vecPointer;
......
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