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

fixes #4

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