Commit 178dc60e authored by Andreas Nüßing's avatar Andreas Nüßing

[DataTree] make sure that datatree is forwarded

parent 21d0dae7
......@@ -51,7 +51,7 @@ namespace duneuro
virtual void bind(const typename BaseT::DipoleType& dipole,
DataTree dataTree = DataTree()) override
{
BaseT::bind(dipole);
BaseT::bind(dipole, dataTree);
problem_.bind(this->dipoleElement(), this->localDipolePosition(), this->dipole().moment());
}
......
......@@ -49,12 +49,12 @@ namespace duneuro
*solver_, subTriangulation_, search_, config.get<std::size_t>("compartment"), config);
}
void bind(const typename Traits::DipoleType& dipole)
void bind(const typename Traits::DipoleType& dipole, DataTree dataTree)
{
if (!denseSourceModel_) {
DUNE_THROW(Dune::Exception, "source model not set");
}
denseSourceModel_->bind(dipole);
denseSourceModel_->bind(dipole, dataTree);
}
template <class SolverBackend>
......
......@@ -124,7 +124,7 @@ namespace duneuro
DataTree dataTree = DataTree()) override
{
eegForwardSolver_.setSourceModel(config.sub("source_model"));
eegForwardSolver_.bind(dipole);
eegForwardSolver_.bind(dipole, dataTree);
#if HAVE_TBB
eegForwardSolver_.solve(solverBackend_.local().get(),
solution.cast<typename Traits::DomainDOFVector>(), config, dataTree);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment