Commit f4315aa6 authored by Sebastian Aland's avatar Sebastian Aland

removed KSPSetNullSpace to make compatible with PETSc 3.6

parent 0fea5d82
...@@ -1825,7 +1825,9 @@ namespace AMDiS { namespace Parallel { ...@@ -1825,7 +1825,9 @@ namespace AMDiS { namespace Parallel {
MatNullSpaceCreate(domainComm, PETSC_FALSE, 1, &nullSpaceBasis, MatNullSpaceCreate(domainComm, PETSC_FALSE, 1, &nullSpaceBasis,
&matNullSpace); &matNullSpace);
MatSetNullSpace(mat_feti, matNullSpace); MatSetNullSpace(mat_feti, matNullSpace);
KSPSetNullSpace(ksp_feti, matNullSpace); Mat amat, pmat;
KSPGetOperators(ksp, &amat, &pmat);
MatSetNullSpace(amat, matNullSpace);
MatNullSpaceDestroy(&matNullSpace); MatNullSpaceDestroy(&matNullSpace);
VecDestroy(&ktest0); VecDestroy(&ktest0);
......
...@@ -951,7 +951,10 @@ namespace AMDiS { namespace Parallel { ...@@ -951,7 +951,10 @@ namespace AMDiS { namespace Parallel {
MatNullSpace matNullSpace; MatNullSpace matNullSpace;
MatNullSpaceCreate(domainComm, PETSC_FALSE, 1, &nullSpaceBasis, &matNullSpace); MatNullSpaceCreate(domainComm, PETSC_FALSE, 1, &nullSpaceBasis, &matNullSpace);
KSPSetNullSpace(ksp, matNullSpace);
Mat amat, pmat;
KSPGetOperators(ksp, &amat, &pmat);
MatSetNullSpace(amat, matNullSpace);
MatNullSpaceDestroy(&matNullSpace); MatNullSpaceDestroy(&matNullSpace);
VecDestroy(&nullSpaceBasis); VecDestroy(&nullSpaceBasis);
...@@ -962,7 +965,9 @@ namespace AMDiS { namespace Parallel { ...@@ -962,7 +965,9 @@ namespace AMDiS { namespace Parallel {
{ {
MatNullSpace matNullSpace; MatNullSpace matNullSpace;
MatNullSpaceCreate(domainComm, PETSC_TRUE, 0, PETSC_NULL, &matNullSpace); MatNullSpaceCreate(domainComm, PETSC_TRUE, 0, PETSC_NULL, &matNullSpace);
KSPSetNullSpace(ksp, matNullSpace); Mat amat, pmat;
KSPGetOperators(ksp, &amat, &pmat);
MatSetNullSpace(amat, matNullSpace);
MatNullSpaceDestroy(&matNullSpace); MatNullSpaceDestroy(&matNullSpace);
} }
......
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