Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
iwr
amdis
Commits
f4315aa6
Commit
f4315aa6
authored
Jan 22, 2016
by
Sebastian Aland
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed KSPSetNullSpace to make compatible with PETSc 3.6
parent
0fea5d82
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
AMDiS/src/parallel/PetscSolverFeti.cc
AMDiS/src/parallel/PetscSolverFeti.cc
+3
-1
AMDiS/src/parallel/PetscSolverGlobalMatrix.cc
AMDiS/src/parallel/PetscSolverGlobalMatrix.cc
+7
-2
No files found.
AMDiS/src/parallel/PetscSolverFeti.cc
View file @
f4315aa6
...
...
@@ -1825,7 +1825,9 @@ namespace AMDiS { namespace Parallel {
MatNullSpaceCreate
(
domainComm
,
PETSC_FALSE
,
1
,
&
nullSpaceBasis
,
&
matNullSpace
);
MatSetNullSpace
(
mat_feti
,
matNullSpace
);
KSPSetNullSpace
(
ksp_feti
,
matNullSpace
);
Mat
amat
,
pmat
;
KSPGetOperators
(
ksp
,
&
amat
,
&
pmat
);
MatSetNullSpace
(
amat
,
matNullSpace
);
MatNullSpaceDestroy
(
&
matNullSpace
);
VecDestroy
(
&
ktest0
);
...
...
AMDiS/src/parallel/PetscSolverGlobalMatrix.cc
View file @
f4315aa6
...
...
@@ -951,7 +951,10 @@ namespace AMDiS { namespace Parallel {
MatNullSpace
matNullSpace
;
MatNullSpaceCreate
(
domainComm
,
PETSC_FALSE
,
1
,
&
nullSpaceBasis
,
&
matNullSpace
);
KSPSetNullSpace
(
ksp
,
matNullSpace
);
Mat
amat
,
pmat
;
KSPGetOperators
(
ksp
,
&
amat
,
&
pmat
);
MatSetNullSpace
(
amat
,
matNullSpace
);
MatNullSpaceDestroy
(
&
matNullSpace
);
VecDestroy
(
&
nullSpaceBasis
);
...
...
@@ -962,7 +965,9 @@ namespace AMDiS { namespace Parallel {
{
MatNullSpace
matNullSpace
;
MatNullSpaceCreate
(
domainComm
,
PETSC_TRUE
,
0
,
PETSC_NULL
,
&
matNullSpace
);
KSPSetNullSpace
(
ksp
,
matNullSpace
);
Mat
amat
,
pmat
;
KSPGetOperators
(
ksp
,
&
amat
,
&
pmat
);
MatSetNullSpace
(
amat
,
matNullSpace
);
MatNullSpaceDestroy
(
&
matNullSpace
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment