Skip to content
Snippets Groups Projects
Commit 3218ed19 authored by podlesny's avatar podlesny
Browse files

overload constructor

parent 8c0bd965
Branches
No related tags found
No related merge requests found
...@@ -20,6 +20,16 @@ SolverFactory<Functional, BitVector>::SolverFactory( ...@@ -20,6 +20,16 @@ SolverFactory<Functional, BitVector>::SolverFactory(
ignoreNodes_(ignoreNodes) ignoreNodes_(ignoreNodes)
{} {}
template <class Functional, class BitVector>
SolverFactory<Functional, BitVector>::SolverFactory(
const Dune::ParameterTree& parset,
std::shared_ptr<Functional> J,
const BitVector& ignoreNodes) :
parset_(parset),
J_(Dune::Solvers::wrap_own_share<const Functional>(J)),
ignoreNodes_(ignoreNodes)
{}
template <class Functional, class BitVector> template <class Functional, class BitVector>
template <class LinearSolver> template <class LinearSolver>
void SolverFactory<Functional, BitVector>::build(std::shared_ptr<LinearSolver>& linearSolver) { void SolverFactory<Functional, BitVector>::build(std::shared_ptr<LinearSolver>& linearSolver) {
......
...@@ -38,6 +38,10 @@ class SolverFactory { ...@@ -38,6 +38,10 @@ class SolverFactory {
Functional&, Functional&,
const BitVector&); const BitVector&);
SolverFactory(const Dune::ParameterTree&,
std::shared_ptr<Functional>,
const BitVector&);
template <class LinearSolver> template <class LinearSolver>
void build(std::shared_ptr<LinearSolver>& linearSolver); void build(std::shared_ptr<LinearSolver>& linearSolver);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment