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

remove several multigrid-specific data members, which were not even used anyways

[[Imported from SVN: r4104]]
parent 6f8aa356
Branches
No related tags found
No related merge requests found
......@@ -44,13 +44,8 @@ setup(const GridType& grid,
this->tolerance_ = tolerance;
maxTrustRegionSteps_ = maxTrustRegionSteps;
initialTrustRegionRadius_ = initialTrustRegionRadius;
multigridIterations_ = multigridIterations;
qpTolerance_ = mgTolerance;
mu_ = mu;
nu1_ = nu1;
nu2_ = nu2;
baseIt_ = baseIterations;
baseTolerance_ = baseTolerance;
innerIterations_ = multigridIterations;
innerTolerance_ = mgTolerance;
instrumented_ = instrumented;
int numLevels = grid_->maxLevel()+1;
......@@ -65,8 +60,8 @@ setup(const GridType& grid,
EnergyNorm<MatrixType, CorrectionType>* baseEnergyNorm = new EnergyNorm<MatrixType, CorrectionType>(*baseSolverStep);
::LoopSolver<CorrectionType>* baseSolver = new ::LoopSolver<CorrectionType>(baseSolverStep,
baseIt_,
baseTolerance_,
baseIterations,
baseTolerance,
baseEnergyNorm,
Solver::QUIET);
......@@ -76,7 +71,7 @@ setup(const GridType& grid,
MonotoneMGStep<MatrixType, CorrectionType>* mmgStep = new MonotoneMGStep<MatrixType, CorrectionType>(numLevels);
mmgStep->setMGType(mu_, nu1_, nu2_);
mmgStep->setMGType(mu, nu1, nu2);
mmgStep->ignoreNodes_ = &dirichletNodes;
mmgStep->basesolver_ = baseSolver;
mmgStep->presmoother_ = presmoother;
......@@ -101,10 +96,10 @@ setup(const GridType& grid,
h1SemiNorm_ = new H1SemiNorm<CorrectionType>(**A);
innerSolver_ = new ::LoopSolver<CorrectionType>(mmgStep,
multigridIterations_,
qpTolerance_,
h1SemiNorm_,
Solver::QUIET);
innerIterations_,
innerTolerance_,
h1SemiNorm_,
Solver::QUIET);
// Write all intermediate solutions, if requested
if (instrumented_
......@@ -240,7 +235,7 @@ void RiemannianTrustRegionSolver<GridType,TargetSpace>::solve()
// Compute the energy norm
oldError = h1SemiNorm_->operator()(exactSolution);
for (int j=0; j<multigridIterations_; j++) {
for (int j=0; j<innerIterations_; j++) {
// read iteration from file
CorrectionType intermediateSol(grid_->size(1));
......
......@@ -79,25 +79,11 @@ protected:
/** \brief Maximum number of trust-region steps */
int maxTrustRegionSteps_;
/** \brief Maximum number of iterations of the multigrid basesolver */
int baseIt_;
double baseTolerance_;
/** \brief Number of coarse multigrid iterations (1 for a V-cycle, 2 for a W-cycle) */
int mu_;
/** \brief Number of multigrid presmoothing steps */
int nu1_;
/** \brief Number of multigrid postsmoothing steps */
int nu2_;
/** \brief Maximum number of multigrid iterations */
int multigridIterations_;
int innerIterations_;
/** \brief Error tolerance of the multigrid QP solver */
double qpTolerance_;
double innerTolerance_;
/** \brief Hessian matrix */
std::auto_ptr<MatrixType> hessianMatrix_;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment