Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
iwr
amdis
Commits
eb7dd2a3
Commit
eb7dd2a3
authored
Feb 09, 2016
by
Praetorius, Simon
Browse files
petsc version error corrected
parent
15b3b819
Changes
2
Hide whitespace changes
Inline
Side-by-side
AMDiS/src/parallel/PetscSolverFeti.cc
View file @
eb7dd2a3
...
...
@@ -1826,7 +1826,11 @@ namespace AMDiS { namespace Parallel {
&
matNullSpace
);
MatSetNullSpace
(
mat_feti
,
matNullSpace
);
Mat
amat
,
pmat
;
#if (PETSC_VERSION_MINOR >= 5)
KSPGetOperators
(
ksp_feti
,
&
amat
,
&
pmat
);
#else
KSPGetOperators
(
ksp_feti
,
&
amat
,
&
pmat
,
PETSC_NULL
);
#endif
MatSetNullSpace
(
amat
,
matNullSpace
);
MatNullSpaceDestroy
(
&
matNullSpace
);
...
...
AMDiS/src/parallel/PetscSolverGlobalMatrix.cc
View file @
eb7dd2a3
...
...
@@ -953,7 +953,11 @@ namespace AMDiS { namespace Parallel {
MatNullSpaceCreate
(
domainComm
,
PETSC_FALSE
,
1
,
&
nullSpaceBasis
,
&
matNullSpace
);
Mat
amat
,
pmat
;
#if (PETSC_VERSION_MINOR >= 5)
KSPGetOperators
(
ksp
,
&
amat
,
&
pmat
);
#else
KSPGetOperators
(
ksp
,
&
amat
,
&
pmat
,
PETSC_NULL
);
#endif
MatSetNullSpace
(
amat
,
matNullSpace
);
MatNullSpaceDestroy
(
&
matNullSpace
);
...
...
@@ -966,7 +970,11 @@ namespace AMDiS { namespace Parallel {
MatNullSpace
matNullSpace
;
MatNullSpaceCreate
(
domainComm
,
PETSC_TRUE
,
0
,
PETSC_NULL
,
&
matNullSpace
);
Mat
amat
,
pmat
;
KSPGetOperators
(
ksp
,
&
amat
,
&
pmat
);
#if (PETSC_VERSION_MINOR >= 5)
KSPGetOperators
(
ksp
,
&
amat
,
&
pmat
);
#else
KSPGetOperators
(
ksp
,
&
amat
,
&
pmat
,
PETSC_NULL
);
#endif
MatSetNullSpace
(
amat
,
matNullSpace
);
MatNullSpaceDestroy
(
&
matNullSpace
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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