Skip to content
Snippets Groups Projects
Commit 2fe262e9 authored by Ned Coltman's avatar Ned Coltman Committed by Timo Koch
Browse files

[test][spline] add template argument

parent 3e629769
No related branches found
No related tags found
1 merge request!1624Feature/linspace
...@@ -67,7 +67,7 @@ int main(int argc, char** argv) ...@@ -67,7 +67,7 @@ int main(int argc, char** argv)
const auto y = eval(f, samplePoints); const auto y = eval(f, samplePoints);
// create the spline // create the spline
Dumux::CubicSpline spline(samplePoints, y); Dumux::CubicSpline<double> spline(samplePoints, y);
// evaluate spline and derivative // evaluate spline and derivative
const auto result = eval([&](const double x) { return spline.eval(x); }, testPoints); const auto result = eval([&](const double x) { return spline.eval(x); }, testPoints);
......
...@@ -67,7 +67,7 @@ int main(int argc, char** argv) ...@@ -67,7 +67,7 @@ int main(int argc, char** argv)
const auto y = eval(f, samplePoints); const auto y = eval(f, samplePoints);
// create the spline // create the spline
Dumux::MonotoneCubicSpline spline(samplePoints, y); Dumux::MonotoneCubicSpline<double> spline(samplePoints, y);
// evaluate spline and derivative // evaluate spline and derivative
const auto result = eval([&](const double x) { return spline.eval(x); }, testPoints); const auto result = eval([&](const double x) { return spline.eval(x); }, testPoints);
......
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