23 #ifndef __LINEAR_VARIATIONAL_SOLVER_H 24 #define __LINEAR_VARIATIONAL_SOLVER_H 26 #include <dolfin/common/Variable.h> 27 #include <dolfin/la/LUSolver.h> 28 #include <dolfin/la/KrylovSolver.h> 34 class LinearVariationalProblem;
53 p.
add(
"linear_solver",
"default");
54 p.
add(
"preconditioner",
"default");
55 p.
add(
"symmetric",
false);
57 p.
add(
"print_rhs",
false);
58 p.
add(
"print_matrix",
false);
69 std::shared_ptr<LinearVariationalProblem> _problem;
Common base class for DOLFIN variables.
Definition: Variable.h:35
static Parameters default_parameters()
Default parameter values.
Definition: LinearVariationalSolver.h:49
void add(std::string key)
Definition: Parameters.h:128
void solve()
Solve variational problem.
Definition: LinearVariationalSolver.cpp:48
static Parameters default_parameters()
Default parameter values.
Definition: LUSolver.h:68
This class implements a solver for linear variational problems.
Definition: LinearVariationalSolver.h:38
LinearVariationalSolver(std::shared_ptr< LinearVariationalProblem > problem)
Create linear variational solver for given problem.
Definition: LinearVariationalSolver.cpp:41
Definition: Parameters.h:94
static Parameters default_parameters()
Default parameter values.
Definition: KrylovSolver.cpp:32