-
- Downloads
Move the iterationStep_ member into the IterativeSolver class
Before, it was in the LoopSolver class, which derives directly from IterativeSolver. I think the original idea was that anything that is an iterative solver in the mathematical sense should derive from IterativeSolver. This includes things like the QuadraticIPOptSolver, which is the implementation of an iterative algorithm, inherits from Iterative- Solver, but where you cannot get the individual iteration step as a dune-solvers object. I started to think that this is the wrong approach. The inheritance should be governed less by what an object 'is' in the mathematical sense, but rather by the kind of API it provides. And I would expect an IterativeSolver to provide an IterationStep.
Showing
- dune/solvers/solvers/iterativesolver.cc 5 additions, 0 deletionsdune/solvers/solvers/iterativesolver.cc
- dune/solvers/solvers/iterativesolver.hh 3 additions, 0 deletionsdune/solvers/solvers/iterativesolver.hh
- dune/solvers/solvers/loopsolver.cc 5 additions, 17 deletionsdune/solvers/solvers/loopsolver.cc
- dune/solvers/solvers/loopsolver.hh 3 additions, 10 deletionsdune/solvers/solvers/loopsolver.hh
Loading
Please register or sign in to comment