Skip to content
Snippets Groups Projects
Commit b25cc485 authored by Oliver Sander's avatar Oliver Sander Committed by sander@PCPOOL.MI.FU-BERLIN.DE
Browse files

use multigrid

[[Imported from SVN: r4134]]
parent 1d7da9f2
No related branches found
No related tags found
No related merge requests found
...@@ -30,7 +30,8 @@ using namespace Dune; ...@@ -30,7 +30,8 @@ using namespace Dune;
using std::string; using std::string;
void solve (const GridType& grid, void solve (const GridType& grid,
SolutionType& x, int numLevels, SolutionType& x,
int numLevels,
const TargetSpace& dirichletValue, const TargetSpace& dirichletValue,
ConfigParser& parameters) ConfigParser& parameters)
{ {
...@@ -84,7 +85,7 @@ void solve (const GridType& grid, ...@@ -84,7 +85,7 @@ void solve (const GridType& grid,
RodAssembler<GridType> rodAssembler(grid, &localStiffness); RodAssembler<GridType> rodAssembler(grid, &localStiffness);
RiemannianTrustRegionSolver<GridType,RigidBodyMotion<3> > rodSolver; RiemannianTrustRegionSolver<GridType,RigidBodyMotion<3> > rodSolver;
#if 0 #if 1
rodSolver.setup(grid, rodSolver.setup(grid,
&rodAssembler, &rodAssembler,
x, x,
...@@ -94,9 +95,9 @@ void solve (const GridType& grid, ...@@ -94,9 +95,9 @@ void solve (const GridType& grid,
initialTrustRegionRadius, initialTrustRegionRadius,
multigridIterations, multigridIterations,
innerTolerance, innerTolerance,
mu, nu1, nu2, 1, 3, 3,
baseIterations, 100, // iterations of the base solver
baseTolerance, 1e-8, // base tolerance
false); // instrumentation false); // instrumentation
#else #else
rodSolver.setupTCG(grid, rodSolver.setupTCG(grid,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment