Skip to content
Snippets Groups Projects
Commit 824e947d authored by Elias Pipping's avatar Elias Pipping Committed by Elias Pipping
Browse files

Control solvers through parset

parent d654c364
No related branches found
No related tags found
No related merge requests found
......@@ -283,7 +283,7 @@ int main(int argc, char *argv[]) {
}
// }}}
{
if (parset.get<bool>("useNonlinearGS")) {
MyConvexProblemType myConvexProblem(
stiffnessMatrix, *myGlobalNonlinearity, b1, u1_diff_new);
MyBlockProblemType myBlockProblem(parset, myConvexProblem);
......@@ -318,7 +318,7 @@ int main(int argc, char *argv[]) {
writer.write(filename.c_str());
}
{
if (parset.get<bool>("useGS")) {
BlockGSStep<OperatorType, VectorType> blockGSStep(stiffnessMatrix,
u2_diff_new, b2);
blockGSStep.ignoreNodes_ = &ignoreNodes;
......@@ -333,7 +333,7 @@ int main(int argc, char *argv[]) {
// Use a linear solver for comparison; should return roughly the
// same results if phi vanishes (e.g. because the normalstress is zero)
{
if (parset.get<bool>("useTruncatedGS")) {
TruncatedBlockGSStep<OperatorType, VectorType> blockGSStep(
stiffnessMatrix, u3_diff_new, b3);
blockGSStep.ignoreNodes_ = &ignoreNodes;
......
......@@ -3,6 +3,10 @@ timesteps = 100
verbose = false
useNonlinearGS = true
useGS = false
useTruncatedGS = false
[grid]
refinements = 5
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment