Peano
Loading...
Searching...
No Matches
Solver.h
Go to the documentation of this file.
1// This file is part of the Peano's multigrid extension. For conditions of
2// distribution and use, please see the copyright notice at
3// www.peano-framework.org
4#pragma once
5
6
7#include <string>
8
9#include "tarch/la/Vector.h"
10#include "tarch/logging/Log.h"
12
14
15#include "SolverStatistics.h"
16
17
18namespace mghype {
19 namespace matrixfree {
20 namespace solvers {
21 class Solver;
22 }
23 }
24}
25
26
31 public:
40 Solver(const std::string& name, double tolerance);
41
42 virtual std::string toString() const;
43
50 virtual void beginMeshSweep() = 0;
51
57 virtual void endMeshSweep() = 0;
58 protected:
59
61
67 std::string _name;
68};
69
Abstract base class for all solvers.
Definition Solver.h:30
std::string _name
Name of solver.
Definition Solver.h:67
virtual std::string toString() const
virtual void beginMeshSweep()=0
End the traversal.
virtual void endMeshSweep()=0
Begin the traversal.
Solver(const std::string &name, double tolerance)
Construct the solver.
static tarch::logging::Log _log
Definition Solver.h:60
Log Device.
Definition Log.h:516
This file is part of the multigrid project within Peano 4.
Definition __init__.py:1
This file is part of the multigrid project within Peano 4.
Definition __init__.py:1