Skip to content
Snippets Groups Projects
Commit 8b88f180 authored by Timo Koch's avatar Timo Koch
Browse files

Merge branch 'fix/spline-test-gnuplot' into 'master'

[test][spline] Set gnuplot.setOpenPlotWindow(false) to avoid gnuplot timeout

Closes #939

See merge request !2273
parents 5bd42649 2574c43c
No related branches found
No related tags found
1 merge request!2273[test][spline] Set gnuplot.setOpenPlotWindow(false) to avoid gnuplot timeout
...@@ -85,6 +85,7 @@ int main(int argc, char** argv) ...@@ -85,6 +85,7 @@ int main(int argc, char** argv)
const auto resultDerivPlot = eval([&](const double x) { return spline.evalDerivative(x); }, plotPoints); const auto resultDerivPlot = eval([&](const double x) { return spline.evalDerivative(x); }, plotPoints);
Dumux::GnuplotInterface<double> gnuplot(false); Dumux::GnuplotInterface<double> gnuplot(false);
gnuplot.setOpenPlotWindow(false);
gnuplot.addDataSetToPlot(plotPoints, refPlot, "reference"); gnuplot.addDataSetToPlot(plotPoints, refPlot, "reference");
gnuplot.addDataSetToPlot(plotPoints, refDerivPlot, "reference_derivative"); gnuplot.addDataSetToPlot(plotPoints, refDerivPlot, "reference_derivative");
gnuplot.addDataSetToPlot(plotPoints, resultPlot, "spline"); gnuplot.addDataSetToPlot(plotPoints, resultPlot, "spline");
......
...@@ -115,6 +115,7 @@ int main(int argc, char** argv) ...@@ -115,6 +115,7 @@ int main(int argc, char** argv)
const auto resultDerivPlot = eval([&](const double x) { return spline.evalDerivative(x); }, plotPoints); const auto resultDerivPlot = eval([&](const double x) { return spline.evalDerivative(x); }, plotPoints);
Dumux::GnuplotInterface<double> gnuplot(/*persist=*/false); Dumux::GnuplotInterface<double> gnuplot(/*persist=*/false);
gnuplot.setOpenPlotWindow(false);
gnuplot.addDataSetToPlot(plotPoints, refPlot, "exp_reference"); gnuplot.addDataSetToPlot(plotPoints, refPlot, "exp_reference");
gnuplot.addDataSetToPlot(plotPoints, refDerivPlot, "exp_reference_derivative"); gnuplot.addDataSetToPlot(plotPoints, refDerivPlot, "exp_reference_derivative");
gnuplot.addDataSetToPlot(plotPoints, resultPlot, "monotspline"); gnuplot.addDataSetToPlot(plotPoints, resultPlot, "monotspline");
......
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