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

Move declarations, etc.

parent 2729c13e
No related branches found
No related tags found
No related merge requests found
......@@ -169,6 +169,12 @@ int main() {
setup_boundary<GridType::LeafGridView>(leafView, end_points, ignoreNodes,
neumannNodes, frictionalNodes);
typedef MyConvexProblem<OperatorType, VectorType, Dune::LinearFunction>
MyConvexProblemType;
typedef MyBlockProblem<MyConvexProblemType> MyBlockProblemType;
GenericNonlinearGS<MyBlockProblemType> nonlinearGSStep;
nonlinearGSStep.ignoreNodes_ = &ignoreNodes;
VectorType u1(grid.size(grid.maxLevel(), dim));
u1 = 0;
VectorType u2 = u1;
......@@ -200,15 +206,9 @@ int main() {
// }}}
{
typedef MyConvexProblem<OperatorType, VectorType, Dune::LinearFunction>
MyConvexProblemType;
MyConvexProblemType myConvexProblem(stiffnessMatrix, myGlobalNonlinearity,
f, u1);
typedef MyBlockProblem<MyConvexProblemType> MyBlockProblemType;
MyBlockProblemType myBlockProblem(myConvexProblem);
GenericNonlinearGS<MyBlockProblemType> nonlinearGSStep;
nonlinearGSStep.ignoreNodes_ = &ignoreNodes;
nonlinearGSStep.setProblem(u1, myBlockProblem);
LoopSolver<VectorType> solver(&nonlinearGSStep, solver_maxIterations,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment