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

overload constructor

parent 8c0bd965
No related branches found
No related tags found
No related merge requests found
......@@ -20,6 +20,16 @@ SolverFactory<Functional, BitVector>::SolverFactory(
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 LinearSolver>
void SolverFactory<Functional, BitVector>::build(std::shared_ptr<LinearSolver>& linearSolver) {
......
......@@ -38,6 +38,10 @@ class SolverFactory {
Functional&,
const BitVector&);
SolverFactory(const Dune::ParameterTree&,
std::shared_ptr<Functional>,
const BitVector&);
template <class LinearSolver>
void build(std::shared_ptr<LinearSolver>& linearSolver);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment