Skip to content
Snippets Groups Projects

[WIP] Feature/solverfactory

Closed Christian Engwer requested to merge feature/solverfactory into master

This MR mainly contains the factory implementation from !5 (closed) with some cleanup:

  • Allow creating solvers / preconditioners from ParameterTrees.

  • A solver (including preconditioner) can now be configured via an ini file like this:

[solver]
precond = SeqSSOR
solver = CGSolver

[SeqSSOR]
iterations = 1
relaxation = 1.8

[CGSolver]
reduction=1e-9
maxit = 5000
verbose = 3
  • The corresponding dune code currently looks like this:
auto solver = SolverPrecondFactory::create<VectorType> (matrix, configuration, "solver");
  • Both the actual type of the solver/preconditioner and their parameters can chosen in the ini file.
  • It is also possible to create only a solver or only a preconditioner this way. See the factory doxygen for details.

This MR depends on !84 (merged).

Note: change target branch to master, once !84 (merged) is merged!

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading