Skip to content
GitLab
Menu
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
01865c9e
Commit
01865c9e
authored
Sep 20, 2013
by
Praetorius, Simon
Browse files
some Petsc-parameters now directly related to the solvers
parent
80fef7eb
Changes
2
Hide whitespace changes
Inline
Side-by-side
AMDiS/src/parallel/PetscSolver.cc
View file @
01865c9e
...
...
@@ -40,7 +40,7 @@ namespace AMDiS { namespace Parallel {
handleDirichletRows
(
true
)
{
std
::
string
tmp
(
""
);
Parameters
::
get
(
name
+
"->
solver->
petsc prefix"
,
tmp
);
Parameters
::
get
(
name
+
"->petsc prefix"
,
tmp
);
setKspPrefix
(
tmp
);
std
::
string
kspStr
=
""
;
...
...
@@ -51,9 +51,9 @@ namespace AMDiS { namespace Parallel {
if
(
kspStr
!=
""
)
PetscOptionsInsertString
(
kspStr
.
c_str
());
Parameters
::
get
(
"parallel
->remove rhs null space"
,
removeRhsNullspace
);
Parameters
::
get
(
"parallel
->has constant null space"
,
hasConstantNullspace
);
Parameters
::
get
(
"parallel
->nullspace->const in comp"
,
Parameters
::
get
(
name
+
"
->remove rhs null space"
,
removeRhsNullspace
);
Parameters
::
get
(
name
+
"
->has constant null space"
,
hasConstantNullspace
);
Parameters
::
get
(
name
+
"
->nullspace->const in comp"
,
constNullspaceComponent
);
}
...
...
AMDiS/src/parallel/PetscSolverGlobalMatrix.cc
View file @
01865c9e
...
...
@@ -78,7 +78,7 @@ namespace AMDiS { namespace Parallel {
PetscOptionsInsertString
((
"-"
+
kspPrefix
+
"ksp_monitor"
).
c_str
());
if
(
!
matSolverPackage
)
{
Parameters
::
get
(
"parallel
->use zero start vector"
,
zeroStartVector
);
Parameters
::
get
(
name
+
"
->use zero start vector"
,
zeroStartVector
);
}
Parameters
::
get
(
"parallel->print matrix info"
,
printMatInfo
);
}
...
...
Write
Preview
Supports
Markdown
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