Commit c221f565 authored by Lukas Riedel's avatar Lukas Riedel

Rename template parameter in interpolator factory

Previous parameter name shadowed a typedef inside the factory class.
This update should reduce confusion.
parent 0eff2b5e
......@@ -340,13 +340,13 @@ using Domain = typename Traits::Domain;
* Dune::Dorie::log_base
* \return Shared pointer to the interpolator
*/
template<typename Data, typename Shape, typename Domain>
template<typename Data, typename Shape, typename SpaceVector>
static auto create (
const std::string& type,
Data&& data,
Shape&& shape,
Domain&& extensions,
Domain&& offset,
SpaceVector&& extensions,
SpaceVector&& offset,
const std::shared_ptr<spdlog::logger> log=get_logger(log_base)
)
-> std::shared_ptr<Interpolator<
......@@ -362,16 +362,16 @@ static auto create (
return std::make_shared<NNInterp>(
std::forward<Data>(data),
std::forward<Shape>(shape),
std::forward<Domain>(extensions),
std::forward<Domain>(offset)
std::forward<SpaceVector>(extensions),
std::forward<SpaceVector>(offset)
);
}
else if (type == LinearInterp::type) {
return std::make_shared<LinearInterp>(
std::forward<Data>(data),
std::forward<Shape>(shape),
std::forward<Domain>(extensions),
std::forward<Domain>(offset)
std::forward<SpaceVector>(extensions),
std::forward<SpaceVector>(offset)
);
}
else {
......
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